Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Help!!!! Setting column and row focus in grid
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01294755
Message ID:
01294787
Vues:
15
>Hi
>
>I have 10 columns in a grid - a button sets my focus at row 1 column 9 - after completing column 9 the cursor moves to colum 10
>
>Afer column 10 I want to set the focus to row 2 column 9 etc
>
>How do I do this?
>
>Thanks
>
>Colin

Depending on your grid configuration you may try to add in the Column10.Text1.LostFocus a piece of code for appropriate key strokes, like:
set confirm off
if lastkey()=13   && user may hit arrow keys, so handle it differently if needed
	keyboard "{leftarrow}"
	keyboard "{dnarrow}"
	keyboard "{leftarrow}"
endif
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform