Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Textboxes autoselect upon mouse click?
Message
De
10/05/2001 13:47:22
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Textboxes autoselect upon mouse click?
Divers
Thread ID:
00505893
Message ID:
00505893
Vues:
55
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.

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.
"The Iron Fish: The water is cold...but the fish don't mind"
...Jay Jenks, boyhood chum
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform