Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Disabling a container
Message
From
31/01/2002 09:01:53
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
 
 
To
31/01/2002 08:06:27
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00613278
Message ID:
00613318
Views:
15
>If I disable a container-type element (container, grid, etc.), the elements inside can't be accessed, but there is no visible clue that they are disabled.
>
>I briefly considered something like changing the base classes, to disable all included elements (perhaps with an _assign method), but I see several problems with this. For instance, if I simply re-enabe the included elements, this will include elements formerly disabled, that I want to keep disabled for some reason.
>
>How do other developers deal with this situation?
>
>TIA, Hilmar.

Hilmar,

What about something like changing the ForeColor to grey for everything in the container when it is disabled. Setting them back to the original ForeColor when enabled and then the DisabledForeColor should take over. No need to track the individual objects. Sounds too simple...did I miss something obvious?

Renoir
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform