Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Page.Activate()/form.Activate() problem
Message
From
01/12/2003 11:00:42
Gary Foster
Pointsource Consulting LLC
Chanhassen, Minnesota, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Page.Activate()/form.Activate() problem
Miscellaneous
Thread ID:
00854696
Message ID:
00854696
Views:
63
Hi all,
I have a situation with page.activate() I am trying to resolve. Specifically, if a form has a pageframe and the form loses focus, the pageframe's active page's activate fires when the form regains focus even when the active control isn't on the page, i.e., the pageframe didn't have focus when the form lost focus.

I have code in the activate method of my pages that I want to fire when the page receives focus because a contained control gets focus or the user clicks on the page tab, for example, but not just because I moved to another form, such as a lookup form and returned.

VFP8 sp1 default behavior is for the page.activate() to always run before the form.activate(), so I can’t intercept it at the form level. Any ideas?

Thanks.

Gary
Next
Reply
Map
View

Click here to load this message in the networking platform