TGroup — Container-View, der beliebig viele Kind-Views enthält und verwaltet. Bildschirmausgabe, Ereignis-Dispatch und State-Änderungen werden an alle Kinder weitergegeben. TGroup ist die Basis für TWindow, TDialog und TDesktop.
→ lyxvision · lyxvision.view · lyxvision.window
import lyxvision.group;
import lyxvision.button;
import lyxvision.statictext;
// Gruppe als Container
var grp: TGroup := TGroupNew(5, 5, 60, 20);
// Kinder einfügen
var lbl: TStaticText := TStaticTextNew(grp, 2, 2, "Name:");
var btn: TButton := TButtonNew(grp, 20, 12, " OK ", cmOK);
TGroupInsert(grp, lbl);
TGroupInsert(grp, btn);
// Fokus auf erstes selektierbares Kind
TGroupSelectFirst(grp);
// Broadcast an alle Kinder senden
var e: TEvent;
e.what := evBroadcast;
e.key := cmUpdate;
TGroupBroadcast(grp, &e);
| Signatur | Sichtbarkeit | Beschreibung |
|---|---|---|
TGroupNew(x1: int64, y1: int64, x2: int64, y2: int64): TGroup | pub | Erzeugt neue Gruppe |
TGroupInsert(g: TGroup, v: TView): void | pub | Fügt Kind-View in Gruppe ein |
TGroupDelete(g: TGroup, v: TView): void | pub | Entfernt Kind-View aus Gruppe |
TGroupSelectFirst(g: TGroup): void | pub | Fokussiert erste selektierbare Kind-View |
TGroupSelectNext(g: TGroup): void | pub | Fokus auf nächste selektierbare Kind-View |
TGroupBroadcast(g: TGroup, e: *TEvent): void | pub | Sendet Ereignis an alle Kind-Views |
TGroupDraw(g: TGroup): void | pub | Zeichnet Gruppe und alle Kinder |
TGroupHandleEvent(g: TGroup, e: *TEvent): void | pub | Verarbeitet Ereignis (delegiert an Kinder) |
TGroupExecView(g: TGroup, v: TView): int64 | pub | Führt Kind-View modal aus |
TGroupChildCount(g: TGroup): int64 | pub | Gibt Anzahl der Kind-Views zurück |
Letzte Aktualisierung: 2026-05-22