Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Textbox selection position
Message
 
 
À
23/02/2004 17:56:37
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00880100
Message ID:
00880130
Vues:
15
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--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform