Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SetFocus and buttons
Message
De
26/06/1998 08:29:44
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
SetFocus and buttons
Divers
Thread ID:
00111887
Message ID:
00111887
Vues:
44
I have a form class with pageframe (2 pages) and insert, save,
undo, delete and quit buttons on page 1.

When one form based on this class is executed the focus is
on the label of the first page.

I would like the focus on insert button. So, in the Init method of
form class I set the focus to this button. This works Ok.

When the insert button is pressed I set the enable property
of this button to .f. and set the focus to the first field of the
page 1, the cursor goes to the first field, but the insert button
seems marked with bold line indicating that the focus is still on it.

If I type something on the first field and press enter to skip to
the next field, the focus goes to the label of the first page,
instead of the next field. I think that this happen because of the
focus is still on disable insert button.

Now, if I quit off the initial focus on the insert button, everything
works ok.

Do the behavior of the focus in buttons is different? Why the bold
line remains arround the insert button after the focus is in the
first field? How can I solve this problem of the initial focus on insert button.
Antonio Carlos Kleinübing
Systems Analyst
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform