Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Textboxes autoselect upon mouse click?
Message
De
10/05/2001 13:51:35
 
 
À
10/05/2001 13:47:22
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00505893
Message ID:
00505896
Vues:
20
>It is a documented 'feature?' that the SelectOnEntry=.T. property only takes effect if one uses the keyboard to switch the focus to a Textbox control. In particular, if one uses the mouse to select a control, VFP does not select the entire contents of the control when the control gets the focus.

Yes. It's in the Windows UI Guidelines.

>
>However, I discovered that placing a dodefault() in the Gotfocus of the textbox does cause VFP to select the contents of a textbox control, even when navigating to the control using the mouse. (Though it does not seem to work this way if the textbox's parent is not a baseclass)
>
>I sure don't get warm fuzzies when an explicit call to the parent's gotfocus clearly does something different than the implicit call that supposedly gets executed when one leaves a method empty.

Sounds like a bug to me.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform