Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Disabling a container
Message
From
01/02/2002 11:12:29
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
31/01/2002 09:19:28
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00613278
Message ID:
00614066
Views:
28
>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.

Das kann automatisch gehen, aber du brauchst noch eine Property für jede Kontroll...

you should have an .EnableAllowed or something like that in each control, and either set it manually in the PEM window (it should usually be .t.), or set it equal to .enabled in the .init; then you'd need enabled_assign in each class, and it would be
lparameter vNewVal
this.enabled=m.vNewVal and this.EnabledAllowed
With this, you can do Container.SetAll("Enabled", .t.) all you like, and each control will get enabled if it's allowed to do so. Of course, if you've done this already at the framework level, you have nothing to do :).

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform