Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I create a content menu
Message
 
À
16/10/2000 11:09:52
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00429743
Message ID:
00429766
Vues:
14
Right and you can reference procedures in your form
_screen.activescreen.custom_meth
is the same as
thisform.custom_meth
but you can call the _screen.activescreen.custom_meth from the menu itself

I am not sure is this is the recommended way



>>Can anyone direct me to information Or tell me how I would create a content menu when the user right clicks on an object.
>
>Like Stephen said, or, there is an OO way too. The FFC has a _shortcut class in _menu.vcx which allows you to create, edit, and display a shortcut menu programmatically.
>
>One little tip, since your menu can't use object refrences like THIS and THISFORM in it, to use them, do somethign like this:
>
>private oThis, oThisform
>
>oTHis = this
>oThisform = thisform
>
>oMenu.ShowMenu()

>
>Now you can use oThis and oThisform in your menu.
Stephen McLaughlin
"Sexy Steve Valenteno", "Blastmaster"
stephenmclaughlin@gmail.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform