Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Disabling a container
Message
De
31/01/2002 09:01:53
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
 
 
À
31/01/2002 08:06:27
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00613278
Message ID:
00613318
Vues:
16
>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
Fil
Voir

Click here to load this message in the networking platform