Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing the current object as a parameter
Message
From
31/12/2003 14:54:24
 
 
To
31/12/2003 14:42:23
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00863202
Message ID:
00863206
Views:
14
>Hello everyone,
>
>I need to create a shortcut menu that is activated when we right click on my textbox object and I have to pass the current object as a parameter to a function that will call getfont().
>
>My problem is that I don't know how I can pass my form's current object to my function in a generic way... so I can put the code in my textbox parent object.

does the textbox rightclick bubble up to the container?
in your container, you can pass thisform.ActiveControl to the menu, e.g.
** form.RightClick() - bubbled up to here
DO myshortcut WITH this.ActiveControl
in the menu's Setup code add
PARAMETERS poActive
and reference that in the menu code which passes on to the function.
Insanity: Doing the same thing over and over and expecting different results.
Previous
Reply
Map
View

Click here to load this message in the networking platform