Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Keyboard /Cursor Control
Message
 
 
À
13/02/2007 10:21:26
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP1
Database:
Visual FoxPro
Divers
Thread ID:
01195131
Message ID:
01195136
Vues:
21
>Hi all
>
>I can use a little help.
>
>I am trying to control the cursor on a form using keyboard strokes.
>
>Example;
> A form has several rows of data input fields. Using the Up & Down Arrow keys
> I want to set the focus to the first field in each row.
>
>I believe I must use the KeyPress Event but I do not know what the code like.
>
>No examples in the help.
>
>Terry

You may try to code the form's KeyPress method for your purpose. You may need to have a property of the form to hold the current row number and have some distinctive way to identify the first control in each Nth row. Don't forget to add NODEFAULT into the KeyPress event for the Up/Down arrow keys.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform