Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Pageframe.AutoSetFocus overriding Form.SetFocusToFirst
Message
De
04/05/2009 17:45:56
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Titre:
Pageframe.AutoSetFocus overriding Form.SetFocusToFirst
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01397867
Message ID:
01397867
Vues:
82
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.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform