Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Pageframe.AutoSetFocus overriding Form.SetFocusToFirst
Message
From
04/05/2009 17:45:56
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Title:
Pageframe.AutoSetFocus overriding Form.SetFocusToFirst
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01397867
Message ID:
01397867
Views:
81
I have a handful of textboxes outside a pageframe (in a container on a page in a pageframe on a form), and I want a textboxe to receive initial focus. The Form's SetFocusToFirst correctly sets it to the desired textbox, but then pageframe2's page1.UIEnabler.UIEnable steals it away and sets it the first textbox on page1.

Form.Pageframe1.Page1.Container.Textbox -- I want Focus set here.
Form.Pageframe1.Page1.Container.Pageframe2.Page1.Textbox -- is stealing Focus.

Setting Container.nSetFocusType to 0 doesn't seem to have any effect. Setting Pageframe2.lSetAutoFocus to .F. moves focus to PageFrame2. It seems to me that I need to have UIEnabler.UIEnable call Form.SetFocusToFirst, and move the appropriate pageframe-specific code there. Since this is changing MM framework code, can anyone confirm / deny / offer any ideas?

Chris.
Next
Reply
Map
View

Click here to load this message in the networking platform