Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Disabled page doesn't look like disabled
Message
 
 
To
02/05/2017 20:59:05
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Database:
MS SQL Server
Miscellaneous
Thread ID:
01650793
Message ID:
01650823
Views:
84
>>>you might try to set the page's backcolor property to your own disabled value...
>>
>>Why this would be necessary? I don't understand why that page looks disabled in design mode but like enabled in run-time. What would be responsible for this wrong appearance?
>
>Maybe there is code somewhere that is overriding the design-time configuration at runtime?
>
>I'd run into a few occasions where I had inherited some code where the original author for some reason thought it was a good idea to not use ENABLE or READONLY properties but to set up the behavior largely with WHEN events on the controls. Talk about confusing, since this basically meant there were no visual cues when things were disabled or enabled, nor when text boxes were read-only or not.

I found that if Themes = .t. then it doesn't seem to work. With Themes = .f. and setting ForeColor of the page to 192,192,192 it seems to work OK.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform