>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 :).