Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to be sure of position of cursor?
Message
From
27/05/1999 15:02:33
 
 
To
27/05/1999 14:03:29
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00223588
Message ID:
00223629
Views:
22
>I have a Spinner control in a grid.
>
>I want to be sure that when a user click on that column that the cursor is at the leftmost position in that field.
>
>I already did a KEYBOARD '{Home}' in the GotFocus event.
>
>The problem is if the user already clicked on the leftmost part in that field the cursor goes back to the previous column (because I should'nt have to do the KEYBOARD '{Home}' in that particular case)
>
>How can I resolve this ?

Um, I'm not sure of the order of these commands ( haven't done it in a while ) so you might have to experiment a little. In GotFocus() ( and/or maybe Click() ) event:

DODEFAULT()
THIS.SelStart = 0
NODEFAULT

Bill
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform