Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Keeping the focus in a field
Message
De
01/03/2003 22:08:40
Carmen Gassi
Perseus Software Systems
Oakville, Ontario, Canada
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Keeping the focus in a field
Divers
Thread ID:
00760065
Message ID:
00760065
Vues:
58
I am designing a form on which I have a number of text boxes and command buttons. When a particular condition exists, I would like to keep the focus on a certain textbox while I move the record pointer through a table. I have tried to accomplish this by using a DO WHILE loop but have met with little success. It seems no matter what I try, I cannot keep the focus on an object, in this case the textbox. I have resorted to setting a formwide condition and when the condition is in effect, I have return a .f. from the other text boxes on the form. This sort of works except that the focus shifts to the command buttons. If I put the same code in the WHEN event of the command buttons my EXIT FORM button refuses focus so I cannot gracefully exit the form. Perhaps I am approaching this all wrong. Maybe I shouldn't try to use a loop in event program, I'm not sure. All suggestions are appreciated.

Regards ,
Carmen
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform