How to set a menu text if the menu is created by SalTrackPopupMenu

forum.advanced.programming (1998-2005)
Heribert Schönpos

How to set a menu text if the menu is created by SalTrackPopupMenu

Post by Heribert Schönpos » 16 Mar 2005, 09:45

 Posted by:  Heribert Schönpos 

Hello!

Is there any way to set a menu text for a menu which is created by
SalTrackPopupMenu()? We are using TD3.1.
I am using the On WM_INITMENU Message to get the handle from the menu.
VisMenuDelete( hWndForm, wParam, 2 ) works fine, but VisMenuSetText(
hWndForm, wParam, 2, 'Search key' ) dosn't work.

Thanks,
Heribert Schönpos
Pollex, Dr. Lexen Ges.m.b.H.

Jeff Luther
Site Admin
Site Admin
United States of America
Posts: 2385
Joined: 04 Mar 2017, 18:34
Location: Palm Springs, California

Re: How to set a menu text if the menu is created by SalTrackPopupMenu

Post by Jeff Luther » 16 Mar 2005, 17:18

 Posted by:  Jeff Luther 

Take a look at my "Manipulating Menus..." demo toward the bottom of my
Gupta page (link below). Run the menuDemo32.app sample and right mouse
click on the form window. Up pops the tracking popup with a few menu
options.

Best Regards,
Jeff Luther/PC Design
www.pulpcards.com/gupta/

Return to “advanced.programming”

Who is online

Users browsing this forum: [Ccbot] and 0 guests