Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to create popup!
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00851063
Message ID:
00851075
Views:
10
>Hi - this is probably so simple but I can't get it!
>
>I would like to have a button, when clicked, display a menu with various options just above the button. Then detect what the user selected. That's it!!!

Chris,

Try to put following code in Button.Click() method
LOCAL lcSelected

DEFINE POPUP myPopup FROM mrow(), mcol() 
DEFINE BAR 1 OF myPopup PROMPT 'First item'  
DEFINE BAR 2 OF myPopup PROMPT 'Second item'
DEFINE BAR 3 OF myPopup PROMPT 'Third item'  
DEFINE BAR 4 OF myPopup PROMPT 'Fourth item'

ON SELECTION POPUP myPopup lcSelected = PROMPT()

ACTIVATE POPUP myPopup 

WAIT WINDOW lcSelected Nowait
Cheers,

Zoran
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform