Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Disabling a container
Message
From
31/01/2002 09:19:28
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
31/01/2002 09:07:31
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00613278
Message ID:
00613331
Views:
23
Kurz, das Ganze ist nicht so einfach. Schade, dass das nicht automatisch geht (ich würde erwarten, wenn ich in einem Container .Enabled = .F. setze, dass der Inhalt sichtbar disabled wird).

Danke für die Kommentare. Ich glaube, ich werde halt, statt eine universelle Lösung zu suchen, in einzelnen Fällen den container sichtbar disabled machen - z.B. in einem Grid.

Grüsse, Hilmar.

>Hi Hilmar,
>I've waited for<s>. I run myself in this everytime in need to do.
>For common I simply ignore the controls within (custoumer want's it cheap - ?).
>To keep track of things is a way. It is a little bit like using a stack.
>
>The common windows way is different: An Object is responsible for itself. So you have to have the information within the object, change the object and it restores to what it belonged (according to its states). Nice,clean and encapsulated. Since we hunt the fox encapsulation is not too good idea.
>Doing all with encapsulation will cause the interpreter to jump to sleep. It is not fast.
>I would prefer to use this ENABLED_ASSIGN in a way like.
>
>PARAMETERS;
> tvNewVal
>
>WITH THIS
>.ENABLED = tvNewVal
>.control1.ENABLED = tvNewVal AND WhatElseSet_Control1
>.control2.~
>~
>
>
>Or what I really do if needed is a method in the FORM that runs straight with no "IF" no jump just logic to control each and every effect that needs control.
>
>Gather all conditions
>do logic that is multiple needed
>set all visible
>set all enabled
>set all readonly
>...
>
>Puting a LOCKSCREEN around and it is not to slow.
>
>It is a little bit of what you need it for. If you scroll through a table fiering houndreds of method calls per line it is not to fine. All need be fast as possible. I remeber one time, where we used a timer :{ to prevent methods from fiering on scrolling through a grid.
>If ENABLED is switched by a checkbox users tolerance is higher.
>
>Agnes
>>Agnes,
>>
>>Thanks. I had already hinted at this solution in my original question. The problem remains: when disabling all controls, and then re-enabling them, ALL controls will be enabled, including controls which were previously NOT disabled. Do you think I should somehow keep track of which controls were already disabled when I disable all?
>>
>>Mit herzlichen Grüssen,
>>
>>Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform