Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can't get label to initialize with enabled=.F.
Message
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00807721
Message ID:
00808598
Views:
22
>>>Check to make sure all the color settings are at default values.
>>>
>>>>I'm using VFP 7.0
>>>>
>>>>I have a label in a container class on a form.
>>>>I have the label.enabled = .F., but it keeps coming up enabled. I look in the locals window and it shows the label.enabled = .F., but it's not disabled on the form.
>>>>
>>>>I have a checkbox right next to it in the same class that is initializing enabled=.F., so I know that the container is being refreshed properly.
>>>>
>>>>I put a plain label in the container and set enabled=.F. and it displays enabled, so I assume that it's something in the container that is displaying it enabled.
>>>>
>>>>TIA
>>
>>Looked for that, didn't help.
>
>when you look thru the debugger to find the label is set to enabled = .F., look at the disabledforecolor value. Is it set to RGB(128,128,128)? the container might have code changing the value of labels within it.

Nope, MS responded that it was a bug in Label BaseClass. Setting this.enabled = this.enabled in the Label.Init() solved the problem.
Bill Morris
Previous
Reply
Map
View

Click here to load this message in the networking platform