Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to create popup!
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00851063
Message ID:
00851075
Vues:
9
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform