Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Textbox Click and GotFocus
Message
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00703863
Message ID:
00703866
Views:
15
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
Previous
Reply
Map
View

Click here to load this message in the networking platform