Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Keeping the focus in a field
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement