Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Disabled control
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00541847
Message ID:
00541916
Views:
26
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform