Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Menus in VFP5 -- Which one is popped up?
Message
From
06/08/1999 12:57:21
 
 
To
06/08/1999 02:10:07
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00249813
Message ID:
00250760
Views:
19
>>>Wayne,
>>>
>>>I can (and am) do something like that. The problem is that I need to be able to know what menu they had open at a certain point in time, and there's where I'm having trouble.
>>>
>>>-- jas
>>
>>If all of your menu code goes through some kind of launcher for forms, etc, just save the current POPUP() and BAR() values and when you leave your form do:
>>
>>ACTIVATE POPUP (lpop) BAR lbar
>>
>>Does this do what you want?
>
>Yesss... as soon as I get it to work - and I'll do soon. I've added two properties - FromPopup and FromBar, added them to my base form class, and store the popup() and bar() there during form's init, and in form's destroy() I do. It still doesn't work (after only half an hour of trying), but I feel I'm on the right track.


We had always done it with *shudder* public variables! We no longer do this, as we have given in to the Windows standard of letting the menu go away. It should work with your form properties, though. Good luck!
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform