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:
00116830
Vues:
18
Bob,

It's just a matter of where you encapsulate the functionality as to where you do it. For the PTF-OPP book I created a RightClick menu object. The object was told where to dispatch the OnSelection messages to. ie the form as it created the menu object told it what method names to callback to. This way encapsulates most of the resposibility to the menu object.

By doing it all in the RightClick you encapsulate all the functionality there in one method.

Both ways work equally well.

>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.
df (was a 10 time MVP)

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

Click here to load this message in the networking platform