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

Click here to load this message in the networking platform