Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid and loss of focus
Message
De
04/07/2003 12:27:09
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Grid and loss of focus
Divers
Thread ID:
00807027
Message ID:
00807027
Vues:
55
I need to control the focus of a grid field.

I use Windows XP and Visual FoxPro 7.0 SP1

Here is what happens. I have a grid built on a temp table. The user can build an invoice by clicking button options that sequencially fill the fields and then step down the invoice as the order is filled. However, when the user decides to change an entry and goes back and clicks on the field to change and then clicks a button to re fill that field, the field fills and the focus jumps to the bottom of the grid. I want the focus to remain where the refilled field is located.

Here is the Click code I am trying in the Textbox of the grid.

Local RecordPointer
RecordPointer = Recno()
Goto RecordPointer
This.SetFocus
This.Refresh

Can you help me solve this?

Grady McCue
foxunc@telus.net
I ain't skeert of nuttin eh?
Yikes! What was that?
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform