Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Catégorie:
Codage, syntaxe et commandes
>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
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement