====== API: Bars/Ribbon Controls ======
API-Referenz für Menüleisten, Toolbars und Ribbon.
===== TWvdSBarManager =====
Manager für Menüs und Toolbars.
==== Namespace ====
''WvdS.UI.Controls.Bars''
==== PXAML ====
==== Properties ====
| Property | Typ | Default | Beschreibung |
^ MainMenu | TBar | nil | Hauptmenü |
^ Toolbars | TBarCollection | nil | Toolbars |
^ PopupMenus | TPopupMenuCollection | nil | Kontextmenüs |
^ AllowCustomization | Boolean | True | Anpassung erlaubt |
----
===== TWvdSRibbonControl =====
Microsoft Office-Style Ribbon.
==== Namespace ====
''WvdS.UI.Controls.Bars''
==== PXAML ====
==== Properties ====
| Property | Typ | Default | Beschreibung |
^ Pages | TRibbonPageCollection | nil | Ribbon-Seiten |
^ SelectedPage | TRibbonPage | nil | Aktive Seite |
^ ApplicationButtonText | string | '' | App-Button-Text |
^ ApplicationMenu | TRibbonApplicationMenu | nil | App-Menü |
^ QuickAccessToolbar | TBar | nil | Schnellzugriff |
^ IsMinimized | Boolean | False | Ribbon minimiert |
^ Style | TRibbonStyle | rsOffice2019 | Office2007, Office2010, Office2013, Office2016, Office2019 |
----
===== TWvdSRibbonPage =====
Ribbon-Seite (Tab).
==== Namespace ====
''WvdS.UI.Controls.Bars''
==== Properties ====
| Property | Typ | Default | Beschreibung |
^ Caption | string | '' | Tab-Titel |
^ Groups | TRibbonGroupCollection | nil | Gruppen |
^ IsVisible | Boolean | True | Sichtbar |
^ ContextualTabGroup | string | '' | Kontextueller Tab |
----
===== TWvdSRibbonGroup =====
Ribbon-Gruppe innerhalb einer Seite.
==== Namespace ====
''WvdS.UI.Controls.Bars''
==== Properties ====
| Property | Typ | Default | Beschreibung |
^ Caption | string | '' | Gruppenname |
^ Items | TBarItemCollection | nil | Enthaltene Items |
^ ShowDialogLauncher | Boolean | False | Dialog-Launcher |
^ CollapsePriority | Integer | 0 | Collapse-Priorität |
----
===== TWvdSBarButton =====
Toolbar/Menü-Button.
==== Namespace ====
''WvdS.UI.Controls.Bars''
==== PXAML ====
==== Properties ====
| Property | Typ | Default | Beschreibung |
^ Caption | string | '' | Button-Text |
^ Icon | TWvdSImageSource | nil | Icon |
^ Command | IWvdSCommand | nil | Command |
^ Shortcut | string | '' | Tastenkürzel |
^ Hint | string | '' | Tooltip |
^ Size | TBarButtonSize | bsSmall | Small, Large |
^ IsToggle | Boolean | False | Toggle-Button |
^ IsPressed | Boolean | False | Toggle-Status |
^ IsEnabled | Boolean | True | Aktiviert |
==== Events ====
| Event | Signatur | Beschreibung |
^ OnClick | TNotifyEvent | Button geklickt |
----
===== TWvdSBarSubItem =====
Untermenü.
==== Namespace ====
''WvdS.UI.Controls.Bars''
==== PXAML ====
==== Properties ====
| Property | Typ | Default | Beschreibung |
^ Caption | string | '' | Menü-Text |
^ Icon | TWvdSImageSource | nil | Icon |
^ Items | TBarItemCollection | nil | Untermenü-Items |
----
===== TWvdSBarEditItem =====
Editor in Toolbar/Menü.
==== Namespace ====
''WvdS.UI.Controls.Bars''
==== PXAML ====
==== Properties ====
| Property | Typ | Default | Beschreibung |
^ Caption | string | '' | Label |
^ Edit | TWvdSControl | nil | Editor-Control |
^ Width | Integer | 100 | Breite |
----
===== TWvdSStatusBar =====
Statusleiste.
==== Namespace ====
''WvdS.UI.Controls.Bars''
==== PXAML ====
==== Properties ====
| Property | Typ | Default | Beschreibung |
^ Items | TStatusBarItemCollection | nil | Status-Items |
==== TWvdSStatusBarItem ====
| Property | Typ | Beschreibung |
^ Content | TValue | Inhalt (Text oder Control) |
^ Width | TGridLength | Breite (Auto, *, Pixel) |
^ Alignment | TAlignment | Links, Mitte, Rechts |
----
===== TWvdSAlertControl =====
Benachrichtigungen/Toasts.
==== Namespace ====
''WvdS.UI.Controls.Bars''
==== Syntax ====
AlertControl.Show('Operation completed successfully',
TAlertType.atSuccess, 3000);
AlertControl.Show('Error occurred', TAlertType.atError);
==== Properties ====
| Property | Typ | Default | Beschreibung |
^ Position | TAlertPosition | apTopRight | TopLeft, TopRight, BottomLeft, BottomRight |
^ DefaultDuration | Integer | 5000 | Anzeigedauer (ms) |
^ MaxAlerts | Integer | 5 | Max. gleichzeitige Alerts |
==== Methoden ====
| Methode | Beschreibung |
^ Show(text, type, duration) | Alert anzeigen |
^ ShowInfo(text) | Info-Alert |
^ ShowSuccess(text) | Erfolgs-Alert |
^ ShowWarning(text) | Warnung |
^ ShowError(text) | Fehler-Alert |
^ CloseAll | Alle schließen |
----
===== TWvdSPopupMenu =====
Kontextmenü.
==== Namespace ====
''WvdS.UI.Controls.Bars''
==== PXAML ====
==== Properties ====
| Property | Typ | Default | Beschreibung |
^ Items | TBarItemCollection | nil | Menü-Items |
==== Methoden ====
| Methode | Beschreibung |
^ ShowAt(x, y) | Menü an Position anzeigen |
^ ShowAtCursor | Menü an Cursor anzeigen |
^ Close | Menü schließen |
----
===== Siehe auch =====
* [[.:control-bibliothek|Control-Bibliothek]]
* [[.:api-controls-navigation|Navigation Controls API]]
* [[.:api-controls-basic|Basic Controls API]]