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.

A question about the Menu Object and WM_COMMAND

4 posts in Objects Last posting was on 2002-09-26 19:02:44.0Z
Douglas Troy <dhtroy~NO Posted on 2002-09-26 16:06:54.0Z
Newsgroups: sybase.public.powerbuilder.objects
From: Douglas Troy <dhtroy~NO@SPAM~hotmail.com>
Subject: A question about the Menu Object and WM_COMMAND
Date: Thu, 26 Sep 2002 12:06:54 -0400
X-Newsreader: Forte Agent 1.91/32.564
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 15
NNTP-Posting-Host: 208.21.108.242
Message-ID: <364_8sb6puoljqi0r7k2m9qgcv5o53fb5ggi4i@4ax.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.powerbuilder.objects:900
Article PK: 713461

I have created a base Menu object that allows me to dynamically
insert/remove menu items. Obviously, since I cannot tie clicked events
directly to menu items that are dynamically inserted into a Menu
Object, I was extending the pb_command event in the parent window to
watch for those IDs associated with the menu.

Unfortunately, under PowerBuilder 8.0, it appears that the Menu Object
does not dispatch the WM_COMMAND message to the parent window as it
should - OR - perhaps I am missing something about PowerBuilder which
I was not aware?

TIA,
D.


Philip_Salgannik Posted on 2002-09-26 17:30:35.0Z
Newsgroups: sybase.public.powerbuilder.objects
From: Philip_Salgannik
Date: Thu, 26 Sep 2002 13:30:35 -0400
Subject: Re: A question about the Menu Object and WM_COMMAND
Lines: 1
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Message-ID: <364_46725577310C585600602EE985256C40.005CAD7085256C40@webforums>
References: <364_8sb6puoljqi0r7k2m9qgcv5o53fb5ggi4i@4ax.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:899
Article PK: 713464

http://eric.aling.tripod.com/PB/tips/pbtip37.htm


Douglas Troy <dhtroy~NO Posted on 2002-09-26 17:47:28.0Z
Newsgroups: sybase.public.powerbuilder.objects
From: Douglas Troy <dhtroy~NO@SPAM~hotmail.com>
Subject: Re: A question about the Menu Object and WM_COMMAND
Date: Thu, 26 Sep 2002 13:47:28 -0400
X-Newsreader: Forte Agent 1.91/32.564
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 10
NNTP-Posting-Host: 208.21.108.242
Message-ID: <364_lvh6pu82qgc6575ri12347l609smufrku4@4ax.com>
References: <364_8sb6puoljqi0r7k2m9qgcv5o53fb5ggi4i@4ax.com> <364_46725577310C585600602EE985256C40.005CAD7085256C40@webforums>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.powerbuilder.objects:897
Article PK: 713475

Thank you - this appears to function even under PB 8.0. I am still a
tad bit confused as to why PB doesn't send the WM_COMMAND to the
parent window from the menu, however, but so long as I have a
functional solution.

Thanks again!
D.

On Thu, 26 Sep 2002 13:30:35 -0400, Philip_Salgannik wrote:

>http://eric.aling.tripod.com/PB/tips/pbtip37.htm


Philip_Salgannik Posted on 2002-09-26 19:02:44.0Z
Newsgroups: sybase.public.powerbuilder.objects
From: Philip_Salgannik
Date: Thu, 26 Sep 2002 15:02:44 -0400
Subject: Re: A question about the Menu Object and WM_COMMAND
Lines: 3
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Message-ID: <364_8F1B4A2A4067A8AD00689EBE85256C40.0068080285256C40@webforums>
References: <364_8sb6puoljqi0r7k2m9qgcv5o53fb5ggi4i@4ax.com> <364_46725577310C585600602EE985256C40.005CAD7085256C40@webforums> <364_lvh6pu82qgc6575ri12347l609smufrku4@4ax.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:896
Article PK: 713457

You do not say what version it was "working" in, but running exactly the
same app in 6.5 and 8.01, I see exactly the same menuloop and exactly the
same WM_COMMAND message posted from the menu.