Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SetFocus and buttons
Message
 
À
26/06/1998 08:29:44
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00111887
Message ID:
00111892
Vues:
12
>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.

Hi Antonio,
First, the Click Method of the buttons does not change the focus,
you have to setfocus to the object that you want.
Second, check your "Tab order" it might be in a different order
than the one you want.
Hope this helps.
Luis Guzman, MCP
"The only glory most of us have to hope for
is the glory of being normal." Katherine Fulleton Gerould
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform