Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to programmatically activate a page?
Message
 
 
To
02/06/2010 12:01:52
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01467053
Message ID:
01467061
Views:
66
>>This is what I'm going to try now - SetFocus after ActivePage. I'm also thinking, that may be something changing the active page after my code? Say, may be form's Activate changes it to something else?
>
>Yes, I was thinking about that, then forgot to mention it. If you suspect that, you should put a breakpoint for when (for example) ThisForm.PageFrame1.ActivePage changes.

I think I just figured this out. Another code executes

thisform.SetAll('enabled',.f.)
thisform.myMethod()
thisform.SetAll('enabled',.t.)

so, because the pageframe is disabled, I can not switch focus.

Looks like I may want to re-enable earlier or somehow pass back the page to set focus or something else.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform