>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.