Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SetFocus and buttons
Message
De
29/06/1998 18:25:21
Bruce Gilmour
Cal-Mour Consultants
Calgary, Alberta, Canada
 
 
À
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:
00112698
Vues:
12
Hi Antonio,

Silly question but is the Insert button set as default. I amm just wondering because hitting ENTER in windows ussually executes the default button, but you have set it to ENABLED=.F. so it can't and the next object it settles on could be the label. Does it work if you TAB through the field.

>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.
***************************
Bruce Gilmour

"Two things are infinite, the Universe and human stupidity. And I am not sure about the Universe."
- Albert Einstein
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform