Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Pageframe.AutoSetFocus overriding Form.SetFocusToFirst
Message
From
04/05/2009 18:42:53
 
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
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:
01397877
Views:
34
>>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.
>
>I think we always added a comment in the PageFrame class to not call MM UIEnabler.

Hmm. Some light testing with this, I think I can survive without using UIEnabler at all either. Thanks.
Previous
Reply
Map
View

Click here to load this message in the networking platform