Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Disabling a container
Message
From
31/01/2002 08:18:33
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
 
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:
00613285
Views:
21
Hi Hilmar,
the controls within the container are still enabled (if ask them)

You may do the following
Add a ASSIGN Method to your container class
within ENABLED_Assign
LPARAMETERS;
 tvNewVal

THIS.ENABLED = tvNewVal
THIS.SETALL('ENABLED',tvNewVal)
This switches all elements within your container
You may play around with backcolor as well

Agnes

>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.
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform