Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to be sure of position of cursor?
Message
De
27/05/1999 15:02:33
 
 
À
27/05/1999 14:03:29
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00223588
Message ID:
00223629
Vues:
21
>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform