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.

Getting the Handle of a PopMenu

2 posts in Objects Last posting was on 2003-10-06 15:21:16.0Z
OAQL Posted on 2003-10-06 02:58:53.0Z
From: "OAQL" <oquesada76@hotmail.com>
Newsgroups: sybase.public.powerbuilder.objects
Subject: Getting the Handle of a PopMenu
Lines: 7
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
X-Original-NNTP-Posting-Host: pavas-a181.racsa.co.cr
Message-ID: <3f80db2d@forums-2-dub>
X-Original-Trace: 5 Oct 2003 20:02:05 -0700, pavas-a181.racsa.co.cr
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 5 Oct 2003 19:53:33 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 5 Oct 2003 19:58:53 -0700
X-Trace: forums-1-dub 1065409133 10.22.108.75 (5 Oct 2003 19:58:53 -0700)
X-Original-Trace: 5 Oct 2003 19:58:53 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:7617
Article PK: 734899

It is possible to get the handle of a PopMenu?
I'm trying to add a bitmap to a menu item, but I need the handle of the
PopMenu...

TIA


Philip Salgannik Posted on 2003-10-06 15:21:16.0Z
Sender: 2436.3f8182d3.1804289383@sybase.com
From: Philip Salgannik
Newsgroups: sybase.public.powerbuilder.objects
Subject: Re: Getting the Handle of a PopMenu
X-Mailer: WebNews to Mail Gateway v1.1s
Message-ID: <3f81886c.2469.846930886@sybase.com>
References: <3f80db2d@forums-2-dub>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 6 Oct 2003 08:21:16 -0700
X-Trace: forums-1-dub 1065453676 10.22.241.41 (6 Oct 2003 08:21:16 -0700)
X-Original-Trace: 6 Oct 2003 08:21:16 -0700, 10.22.241.41
Lines: 25
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:7618
Article PK: 734900

Unfortunately, if you want to use a popup menu that you
CREATE in the script versus the one that is already
instantiated on the parent window (sheet or frame), then you
don't have much to work with and the only way to have
bitmaps on it is to use a DLL, like the one here:
http://www.xs4all.nl/~onkie/pbtip006.html

If you can live with showing a submenu of a menu which is
already drawn by a window (with bitmaps, etc.) then you can
use these APIs:
function int TrackPopupMenuEx ( ulong menuhandle, uint
flags, int xx, int yy, ulong windowhandle, long lptpm )
library "user32.dll" (instead of PB's popmenu function )
AND
function ulong GetSubMenu ( ulong menuhandle, int itempos )
Library "user32.dll"

> It is possible to get the handle of a PopMenu?
> I'm trying to add a bitmap to a menu item, but I need the
> handle of the PopMenu...
>
> TIA
>
>