Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DEFINE POPUP Question
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00239112
Message ID:
00239128
Vues:
17
No no no - you misunderstood

I already have the label class with the click event code
already in place to define and display a popup shortcut menu.

In the ON SELECTION you have to specifcy the command to run when
a bar is selected. You can't do this:

ON SELECTION Shortcuts This.SomeMethod()

because 'This' doesnt exists at the time the bar is selected,
so therefore you either have to use :

ON SELECTION Shortcuts _Screen.ActiveForm.SomeMethod()

or

ON SELECTION Shortcuts oPublicObject.SomeMethod()


What I would like to do is be able to direct VFP to
run a method that I'v added to the label so that I dont
have to use a public object or rely on _Screen.ActiveForm.

Does this make sense what I'm trying to do?
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform