Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Menu Item and Modal Form
Message
 
To
20/11/2002 04:28:31
Virgil Reboton
Iger Technologies Inc.
Bacolod, Philippines
General information
Forum:
Visual FoxPro
Category:
Menus & Menu designer
Miscellaneous
Thread ID:
00724640
Message ID:
00724676
Views:
23
>I want to enable a menu item even if there is a modal form running.
>
>How do i do this?
>
>Comments, suggestions or even wild reactions will be appreciated. :)
>VIRGIL

Modal means... well, modal ;o)
so other forms of the same app (including the screen) cannot be activated.

But you can place a menu inside your modal form, by using DEFINE MENU ... IN WINDOW ...

Here's an example you can paste into the form Init event
DEFINE MENU MyMenu IN WINDOW (ThisForm.Caption)

DEFINE PAD MyPad1 OF MyMenu PROMPT '\<First Pad' KEY ALT+F,'' 
DEFINE PAD MyPad2 OF MyMenu PROMPT '\<Second Pad' KEY ALT+S,'' 
On KEY LABEL ALT+F ACTIVATE MENU MyMenu PAD MyPad1
On KEY LABEL ALT+S ACTIVATE MENU MyMenu PAD MyPad2

ON PAD MyPad1 OF MyMenu ACTIVATE POPUP MyPopup1
DEFINE POPUP MyPopup1 MARGIN RELATIVE
DEFINE BAR 1 OF MyPopup1 PROMPT 'Say Hi' 
ON SELECTION POPUP MyPopup1 MESSAGEBOX("Option: "+PROMPT( ))

SHOW MENU MyMenu SAVE
Hope this helps,
Jose
------------------
Jose Marcenaro
Tercer Planeta - Argentina
http://www.tercerplaneta.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform