Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Disabled control
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00541847
Message ID:
00541952
Vues:
11
>Hi Nadya,
>
>Can you disable textboxes, but not the label? The Label and Textboxes are disabled because the parent container control is disabled (Enabled = .F.). The label (caption) inside the container show up dim as if its Enabled property is set to .F.. The textboxes are not dim. The users want to see the label as if it is enabled, that is, not dimmed.
>
>How do you set them to be disabled? Via SetAll command? On initial display this control is disabled. A user action is required to enable it. Could use the SetAll to enable\disable but would have the same problem: a dimmed label caption. I cannot use it for the textboxes only because of some other issues here.
>
>Or enable this label after control is disabled. I did something similar. I created an Enabled_Assign method for the parent container control. In the Enabled_Assign I set the Label.Enabled property to .T.. Now whenever the parent container's Enable property is set the Assign method fires and sets the Label.Enabled property to .T.; the caption displays normally..
>
>Hope this explanation is clear.
>
>Robert

Yes, my suggestion was to enable the label. I haven't thought to do it from the Container.Enabled_Assign and I'm not sure, it's perfectly valid to do it from there. I would just put this.container1.label1.enabled in the form's.Init rather than put this code into container.enabled_assign.

However, I might be wrong here...
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform