Information générale
Catégorie:
The Mere Mortals Framework
Versions des environnements
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.
>
>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.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement