>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?
I guess my next question would be what problems have you had with _screen.activeform?
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only