General information
Category:
The Mere Mortals Framework
Title:
Pageframe.AutoSetFocus overriding Form.SetFocusToFirst
Environment versions
Network:
Windows 2003 Server
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only