Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ShortCut Menu
Message
De
07/04/2002 04:17:16
 
 
À
07/04/2002 01:33:18
Henry Ravichander
RC Management Systems Inc.
Saskatchewan, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de menu & Menus
Titre:
Divers
Thread ID:
00641914
Message ID:
00641918
Vues:
21
>Hi All:
>
>On the right click event of a form, I have the code:
>
>
do ToolTipsMenu.mpr
>
>This works OK on the form. The short cut menu has two pads "Show Tool Tips" and "Deactivate Tool Tips".
>
>Show Tool Tips calls ShowTips.prg which has the code:
>
>
thisform.ShowTips = .f.
>
>which when run gives me a message about the word "this" being a method of the form. same issue with the Deactivate Tool Tips menu pad.
>
>The menu itself is a command "do ShowTips" and "do NoTips".
>
>What should I do to get this to work? TIA.

Either pass the form reference to the menu as a parameter (do ToolTipsMenu.mpr with this, and from there pass it again to the pad code) or use _SCREEN.ActiveForm.
----------------------------------
António Tavares Lopes
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform