Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calling a form method from a shortcut menu
Message
 
À
13/07/1998 12:40:56
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00116786
Message ID:
00116880
Vues:
15
>What is the advantage of doing it this way?
>
>>Don't use the ON SELECTION options in the short cut menu, instead in the right click of the form activate the popup and then in the code following the activation use a DO CASE to check the BAR() that was chosen and respond to it.
Robert,

The advantage is that the form is responsible for its response to the shortcut menu. This way you can customized the results of any shortcut menu hit for the specific form the menu was called from without altering the code for the menu itself. You simply override the default code in the form's rightclick event to do what this particular form wants. You can then have a generic shortcut menu that responds differently depending on the fomr it was launched from.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform