Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Odd textbox behaviour
Message
 
To
31/03/2003 14:18:28
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00771458
Message ID:
00772114
Views:
12
>>>>Just this TopLevel form application. The other applications I have are not in a top level form, and they do not have that same behaviour.
>>>
>>>Another workaround, alternative to Alan's suggestion, and one that doesn't require custom code, is to change .SelectOnEntry = .T.
>>
>>Thank you Hilmar,
>>
>>I found another workaround, Keeps the behaviour just as I expect it to be, without a worry of when a user enters the textbox highlighting some text with the mouse.
>>In the LostFocus Event, add the following line:
>>
This.SelStart = 0
>>
>>Tracy
>
>That looks both simple and effective.
>
>Suggestions: 1) Don't forget you can do this in your base classes. 2) You may want to make this dependent on some condition; for instance:
>
>
>if not This.SelectOnEntry
>  This.SelStart = 0
>
I did put it in the baseclass for this project. And the development team here is going to be investigating putting this in the base class of the main project.

Thank you for the condition, I over looked that possibility.

The odd things is, the main project is behaving this way, without the additional code.
Tracy
Tracy
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform