====== API: Bars/Ribbon Controls ====== API Reference for menu bars, toolbars and ribbon. ===== TWvdSBarManager ===== Manager for menus and toolbars. ==== Namespace ==== ''WvdS.UI.Controls.Bars'' ==== PXAML ==== ==== Properties ==== | Property | Type | Default | Description | ^ MainMenu | TBar | nil | Main menu | ^ Toolbars | TBarCollection | nil | Toolbars | ^ PopupMenus | TPopupMenuCollection | nil | Context menus | ^ AllowCustomization | Boolean | True | Customization allowed | ---- ===== TWvdSRibbonControl ===== Microsoft Office-style Ribbon. ==== Namespace ==== ''WvdS.UI.Controls.Bars'' ==== PXAML ==== ==== Properties ==== | Property | Type | Default | Description | ^ Pages | TRibbonPageCollection | nil | Ribbon pages | ^ SelectedPage | TRibbonPage | nil | Active page | ^ ApplicationButtonText | string | '' | App button text | ^ ApplicationMenu | TRibbonApplicationMenu | nil | App menu | ^ QuickAccessToolbar | TBar | nil | Quick access | ^ IsMinimized | Boolean | False | Ribbon minimized | ^ Style | TRibbonStyle | rsOffice2019 | Office2007, Office2010, Office2013, Office2016, Office2019 | ---- ===== TWvdSRibbonPage ===== Ribbon page (tab). ==== Namespace ==== ''WvdS.UI.Controls.Bars'' ==== Properties ==== | Property | Type | Default | Description | ^ Caption | string | '' | Tab title | ^ Groups | TRibbonGroupCollection | nil | Groups | ^ IsVisible | Boolean | True | Visible | ^ ContextualTabGroup | string | '' | Contextual tab | ---- ===== TWvdSRibbonGroup ===== Ribbon group within a page. ==== Namespace ==== ''WvdS.UI.Controls.Bars'' ==== Properties ==== | Property | Type | Default | Description | ^ Caption | string | '' | Group name | ^ Items | TBarItemCollection | nil | Contained items | ^ ShowDialogLauncher | Boolean | False | Dialog launcher | ^ CollapsePriority | Integer | 0 | Collapse priority | ---- ===== TWvdSBarButton ===== Toolbar/menu button. ==== Namespace ==== ''WvdS.UI.Controls.Bars'' ==== PXAML ==== ==== Properties ==== | Property | Type | Default | Description | ^ Caption | string | '' | Button text | ^ Icon | TWvdSImageSource | nil | Icon | ^ Command | IWvdSCommand | nil | Command | ^ Shortcut | string | '' | Keyboard shortcut | ^ Hint | string | '' | Tooltip | ^ Size | TBarButtonSize | bsSmall | Small, Large | ^ IsToggle | Boolean | False | Toggle button | ^ IsPressed | Boolean | False | Toggle state | ^ IsEnabled | Boolean | True | Enabled | ==== Events ==== | Event | Signature | Description | ^ OnClick | TNotifyEvent | Button clicked | ---- ===== TWvdSBarSubItem ===== Submenu. ==== Namespace ==== ''WvdS.UI.Controls.Bars'' ==== PXAML ==== ==== Properties ==== | Property | Type | Default | Description | ^ Caption | string | '' | Menu text | ^ Icon | TWvdSImageSource | nil | Icon | ^ Items | TBarItemCollection | nil | Submenu items | ---- ===== TWvdSBarEditItem ===== Editor in toolbar/menu. ==== Namespace ==== ''WvdS.UI.Controls.Bars'' ==== PXAML ==== ==== Properties ==== | Property | Type | Default | Description | ^ Caption | string | '' | Label | ^ Edit | TWvdSControl | nil | Editor control | ^ Width | Integer | 100 | Width | ---- ===== TWvdSStatusBar ===== Status bar. ==== Namespace ==== ''WvdS.UI.Controls.Bars'' ==== PXAML ==== ==== Properties ==== | Property | Type | Default | Description | ^ Items | TStatusBarItemCollection | nil | Status items | ==== TWvdSStatusBarItem ==== | Property | Type | Description | ^ Content | TValue | Content (text or control) | ^ Width | TGridLength | Width (Auto, *, Pixel) | ^ Alignment | TAlignment | Left, Center, Right | ---- ===== TWvdSAlertControl ===== Notifications/Toasts. ==== Namespace ==== ''WvdS.UI.Controls.Bars'' ==== Syntax ==== AlertControl.Show('Operation completed successfully', TAlertType.atSuccess, 3000); AlertControl.Show('Error occurred', TAlertType.atError); ==== Properties ==== | Property | Type | Default | Description | ^ Position | TAlertPosition | apTopRight | TopLeft, TopRight, BottomLeft, BottomRight | ^ DefaultDuration | Integer | 5000 | Display duration (ms) | ^ MaxAlerts | Integer | 5 | Max simultaneous alerts | ==== Methods ==== | Method | Description | ^ Show(text, type, duration) | Show alert | ^ ShowInfo(text) | Info alert | ^ ShowSuccess(text) | Success alert | ^ ShowWarning(text) | Warning | ^ ShowError(text) | Error alert | ^ CloseAll | Close all | ---- ===== TWvdSPopupMenu ===== Context menu. ==== Namespace ==== ''WvdS.UI.Controls.Bars'' ==== PXAML ==== ==== Properties ==== | Property | Type | Default | Description | ^ Items | TBarItemCollection | nil | Menu items | ==== Methods ==== | Method | Description | ^ ShowAt(x, y) | Show menu at position | ^ ShowAtCursor | Show menu at cursor | ^ Close | Close menu | ---- ===== See Also ===== * [[.:control-bibliothek|Control Library]] * [[.:api-controls-navigation|Navigation Controls API]] * [[.:api-controls-basic|Basic Controls API]]