Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Textbox Click and GotFocus
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00703863
Message ID:
00703866
Vues:
16
Disregard. Calling SetFocus() from GotFocus as was suggested by Alan Popow in another thread, works.

>Hi everybody,
>
>I have a textbox on the form. I want to be on the third symbol then I activate it. I put this code in GotFocus:
>
>if empty(this.value)
>	this.value = 'A0'	
>	this.selstart = 3
>endif
>
>and this code in Click() event:
>nodefault
>this.GotFocus()
>
>However, then I click on it the cursor positions itself on the place I click... How can I achieve the desired behavior? I set SelectOnEntry to .f.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform