Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Textbox selection position
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00880100
Message ID:
00880130
Views:
14
Roy,

Try
* Textbox Keypress
LPARAMETERS nKeyCode, nShiftAltCtrl
IF EMPTY(this.Value) AND this.SelStart > 0 
	this.SelStart = 0
ENDIF	
>I've noticed that when you have a textbox, let's say it's bound to a field in a cursor, the field can be empty and if you click on the textbox since it's empty it positions the cursor automatically at the beginning of the textbox, BUT I can hightlight with the mouse a portion of the textbox let's say in the middle of the textbox and start typing there which doesn't make sense for me. It's causing problems with my users b/c some will click on the textbox and without noticing they had moved the mouse a little bit thus highlighting a part of the textbox and before they know it they're typing in the middle of the textbox rather than at the beginning.
>
>How do you guys handle this? Any comments?
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform