Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to check the control is in focus ?
Message
 
To
14/09/2013 00:04:50
Yim Ming Sun Derek
Spacious Design Consultant
Hong Kong, Hong Kong
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2008
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01583249
Message ID:
01583250
Views:
53
>Hi,
>I have a Pageframe1 with 3 Page,
>how can I check the Pageframe1.Page3 is in focus.
>
>Please advise.
>
>Thanks.
>Derek Yim

This property will tell you which page is active...

MyPageFrame.ActivePage

..and this method runs when the page has become active...

myPageFrame.mpage1.active()

...I've had to deal with the same problem, no GotFocus for the pages inside a pageframe. I've always manged to work around it by using a combination of these two things.
ICQ 10556 (ya), 254117
Previous
Reply
Map
View

Click here to load this message in the networking platform