Information générale
Titre:
VFP5 Menus -- ACTIVATE POPUP looks like DOS
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
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement