Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Determining the control with the focus on a pageframe
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00295017
Message ID:
00295092
Vues:
28
>I have a series of checkboxes on a page within a pageframe that, when clicked ON, should enable and set the focus to a text box to enter text for the option defined by the checkbox. Each checkbox is also bound to a field in a table and so are the text boxes.
>
>I use the Click method of the checkbox to enable and set the focus to the text box when the checkbox value is true. I also want the text boxes enabled or disabled based on the checkbox value when I change records in the table so I call the checkbox Click method from the form's Refresh method.
>

How about putting the enable/disable code in a separate location, (like a custom form method), and calling it from both the click event of the checkbox, and the form.refresh.

Calling a control's click method is usually an indication that you have some code in the wrong place.
Erik Moore
Clientelligence
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform