Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DEFINE POPUP Question
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00239112
Message ID:
00239128
Views:
15
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform