Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Textboxes autoselect upon mouse click?
Message
From
10/05/2001 13:47:22
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Textboxes autoselect upon mouse click?
Miscellaneous
Thread ID:
00505893
Message ID:
00505893
Views:
56
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
Next
Reply
Map
View

Click here to load this message in the networking platform