Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Setting focus to first object in form.
Message
De
20/06/2000 17:04:29
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Setting focus to first object in form.
Divers
Thread ID:
00382411
Message ID:
00382411
Vues:
64
Hi,

A form class has two properties: cFirstControl and oFirstControl. The first one has the name and the second one a reference to the control that gets focus when we add record to table.

Desired behavior:

1) In Form init, if cFirstControl is name of a valid control, load a reference to it in oFirstControl. Otherwise, load a reference to the first object in tab order that makes sense (no labels, for example).

2) As we navigate in table, if oFirstControl is disabled or otherwise unavailable, focus should go to next object that makes sense in tab order.

TIA,

Alex
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform