Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do determine the current active control
Message
From
30/10/1999 10:35:59
 
 
To
30/10/1999 10:07:09
John Baird
Coatesville, Pennsylvania, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00284298
Message ID:
00284309
Views:
20
Add code in the GotFocus event of all form containers and controls that sets a custom form property to the container name. Reference that form property for the name of the last active container.


>I am developing a module for an ongoing project that will let customers add custom field definitions to the currently selected form.
>
>I need a way to determine at all times what the current parent container is for any object that currently has focus.
>
>IF I want to add a custom field to thisform.pageframe1.page2, I would activate that page, and click on the "add custome field" button on the main form. I need to pass the current container to the called object, but I can't figure out a way to determine what the last active container was.
>
>Help?
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform