Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calling a form method from a shortcut menu
Message
 
 
À
13/07/1998 13:09:32
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00116786
Message ID:
00116856
Vues:
19
Bob,

Right, I put all the messy details of defining the menu in the menu object. This prevents you from having duplicated code all over your app in RightClick methods.

It had an AddItem() method that did the DEFINE BAR, and put the callback method name in an array that the OnSelection() method called back to. It was setup to allow you to call back to a method of a control object itself of just the form.

>Makes sense. You can pull the functionality out of the menu, and make is just a basic vehicle for letting the user choose an action.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform