Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP5 Menus -- ACTIVATE POPUP looks like DOS
Message
From
05/08/1999 17:23:04
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
VFP5 Menus -- ACTIVATE POPUP looks like DOS
Miscellaneous
Thread ID:
00250450
Message ID:
00250450
Views:
55
Okay, so as a follow-up to my previous thread, I dug into my menu's MPR and see that each menu is popped up by an ACTIVATE POPUP call (specifically, 'ON PAD "Print" OF _MSYSMENU ACTIVATE POPUP print').

That leads me to believe that I can insert a proc to do the popup, anmd wrap some state-saving code around the call like so:

PROC ActiPop(tcPopup)

* Store the menu we're opening.
gcCurMenu = tcPopup

* open the menu
lcCall = 'ACTIVATE POPUP ' + tcPopup
&lcCall.

ENDPROC

Then it looks like I'd have to change that initial call from:
#1: ON PAD "Print" OF _MSYSMENU ACTIVATE POPUP print
to:
#2: ON SELECTION PAD "Print" OF _MSYSMENU DO ActiPop WITH 'print'

#2 seems to work, except that the menus that pop up are DOS-style menus, not windows-style, and are all anchored at the upper-left of the screen (not under their menu name). Of course, then menus pop up like good little Windows menus if I use #1.

Is there something I can do to get the typical Windows look and feel to these popups?

if so, I'd be a happy chappy.

-- jas
Reply
Map
View

Click here to load this message in the networking platform