Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

Menu Painter

2 posts in Objects Last posting was on 2003-02-25 16:33:19.0Z
Patrice Domange Posted on 2003-02-24 22:47:19.0Z
Newsgroups: sybase.public.powerbuilder.objects
From: "Patrice Domange" <patrice.domange@skynet.be>
Subject: Menu Painter
Date: Mon, 24 Feb 2003 23:47:19 +0100
Lines: 13
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: 236.97-136-217.adsl.skynet.be 217.136.97.236
Message-ID: <364_Z4qutmF3CHA.182@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.powerbuilder.objects:621
Article PK: 713191

Is it possible to define a user defined menu variable to be used by the Menu
Painter, like in the variables tab in the additionnal properties of the
application objects ? For example, I would like that the painter use my own
m_ancestor class to replace the standard menu object. For now, I use the
Edit Source opions and a find/replace "from menu" by "from m_ancestor". But
it is quite long and boring to do this for every menu of the application...



--
Patrice.Domange@Skynet.be


Steve_Katz_[TeamSybase] Posted on 2003-02-25 16:33:19.0Z
Newsgroups: sybase.public.powerbuilder.objects
From: Steve_Katz_[TeamSybase]
Date: Tue, 25 Feb 2003 11:33:19 -0500
Subject: Re: Menu Painter
Lines: 19
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Message-ID: <364_456AF5DEC90C011F005AF0EA85256CD8.0000E86C85256CD8@webforums>
References: <364_Z4qutmF3CHA.182@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com!webforums.sybase.com!news
Xref: forums-1-dub sybase.public.powerbuilder.objects:7211
Article PK: 734498

>>Is it possible to define a user defined menu variable to be used by the
Menu Painter, like in the variables tab in the additionnal properties of
the application objects ? For example, I would like that the painter use my
own m_ancestor class to replace the standard menu object. For now, I use
the
Edit Source opions and a find/replace "from menu" by "from m_ancestor". But
it is quite long and boring to do this for every menu of the application...
<<

The only way to change menu ancestry is to edit source.

Another design that would have worked for you is if you had a master menu
that contained ALL possible menu options for your entire system. For the
descendant menus, simply hide/disable those menu items that do not apply
(or make all menu items in the master hidden/disabled and in the descendant
make visible/enabled those that apply). In this way if you really
shouldn't have to change the ancestry.

steve
[TeamSybase]