====== API: Bars/Ribbon Controls ====== Riferimento API per barre menu, toolbar e ribbon. ===== TWvdSBarManager ===== Gestore per menu e toolbar. ==== Namespace ==== ''WvdS.UI.Controls.Bars'' ==== PXAML ==== ==== Properties ==== | Property | Tipo | Default | Descrizione | ^ MainMenu | TBar | nil | Menu principale | ^ Toolbars | TBarCollection | nil | Toolbar | ^ PopupMenus | TPopupMenuCollection | nil | Menu contestuali | ^ AllowCustomization | Boolean | True | Personalizzazione permessa | ---- ===== TWvdSRibbonControl ===== Ribbon stile Microsoft Office. ==== Namespace ==== ''WvdS.UI.Controls.Bars'' ==== PXAML ==== ==== Properties ==== | Property | Tipo | Default | Descrizione | ^ Pages | TRibbonPageCollection | nil | Pagine ribbon | ^ SelectedPage | TRibbonPage | nil | Pagina attiva | ^ ApplicationButtonText | string | '' | Testo pulsante app | ^ ApplicationMenu | TRibbonApplicationMenu | nil | Menu app | ^ QuickAccessToolbar | TBar | nil | Accesso rapido | ^ IsMinimized | Boolean | False | Ribbon minimizzato | ^ Style | TRibbonStyle | rsOffice2019 | Office2007, Office2010, Office2013, Office2016, Office2019 | ---- ===== TWvdSRibbonPage ===== Pagina ribbon (tab). ==== Namespace ==== ''WvdS.UI.Controls.Bars'' ==== Properties ==== | Property | Tipo | Default | Descrizione | ^ Caption | string | '' | Titolo tab | ^ Groups | TRibbonGroupCollection | nil | Gruppi | ^ IsVisible | Boolean | True | Visibile | ^ ContextualTabGroup | string | '' | Tab contestuale | ---- ===== TWvdSRibbonGroup ===== Gruppo ribbon all'interno di una pagina. ==== Namespace ==== ''WvdS.UI.Controls.Bars'' ==== Properties ==== | Property | Tipo | Default | Descrizione | ^ Caption | string | '' | Nome gruppo | ^ Items | TBarItemCollection | nil | Item contenuti | ^ ShowDialogLauncher | Boolean | False | Dialog-Launcher | ^ CollapsePriority | Integer | 0 | Priorita collapse | ---- ===== TWvdSBarButton ===== Pulsante toolbar/menu. ==== Namespace ==== ''WvdS.UI.Controls.Bars'' ==== PXAML ==== ==== Properties ==== | Property | Tipo | Default | Descrizione | ^ Caption | string | '' | Testo pulsante | ^ Icon | TWvdSImageSource | nil | Icona | ^ Command | IWvdSCommand | nil | Command | ^ Shortcut | string | '' | Scorciatoia tastiera | ^ Hint | string | '' | Tooltip | ^ Size | TBarButtonSize | bsSmall | Small, Large | ^ IsToggle | Boolean | False | Pulsante toggle | ^ IsPressed | Boolean | False | Stato toggle | ^ IsEnabled | Boolean | True | Abilitato | ==== Events ==== | Event | Firma | Descrizione | ^ OnClick | TNotifyEvent | Pulsante cliccato | ---- ===== TWvdSBarSubItem ===== Sottomenu. ==== Namespace ==== ''WvdS.UI.Controls.Bars'' ==== PXAML ==== ==== Properties ==== | Property | Tipo | Default | Descrizione | ^ Caption | string | '' | Testo menu | ^ Icon | TWvdSImageSource | nil | Icona | ^ Items | TBarItemCollection | nil | Item sottomenu | ---- ===== TWvdSBarEditItem ===== Editor in toolbar/menu. ==== Namespace ==== ''WvdS.UI.Controls.Bars'' ==== PXAML ==== ==== Properties ==== | Property | Tipo | Default | Descrizione | ^ Caption | string | '' | Etichetta | ^ Edit | TWvdSControl | nil | Control editor | ^ Width | Integer | 100 | Larghezza | ---- ===== TWvdSStatusBar ===== Barra di stato. ==== Namespace ==== ''WvdS.UI.Controls.Bars'' ==== PXAML ==== ==== Properties ==== | Property | Tipo | Default | Descrizione | ^ Items | TStatusBarItemCollection | nil | Item stato | ==== TWvdSStatusBarItem ==== | Property | Tipo | Descrizione | ^ Content | TValue | Contenuto (testo o control) | ^ Width | TGridLength | Larghezza (Auto, *, Pixel) | ^ Alignment | TAlignment | Sinistra, Centro, Destra | ---- ===== TWvdSAlertControl ===== Notifiche/Toast. ==== Namespace ==== ''WvdS.UI.Controls.Bars'' ==== Sintassi ==== AlertControl.Show('Operation completed successfully', TAlertType.atSuccess, 3000); AlertControl.Show('Error occurred', TAlertType.atError); ==== Properties ==== | Property | Tipo | Default | Descrizione | ^ Position | TAlertPosition | apTopRight | TopLeft, TopRight, BottomLeft, BottomRight | ^ DefaultDuration | Integer | 5000 | Durata visualizzazione (ms) | ^ MaxAlerts | Integer | 5 | Max. alert simultanei | ==== Metodi ==== | Metodo | Descrizione | ^ Show(text, type, duration) | Mostra alert | ^ ShowInfo(text) | Alert informativo | ^ ShowSuccess(text) | Alert successo | ^ ShowWarning(text) | Avviso | ^ ShowError(text) | Alert errore | ^ CloseAll | Chiudi tutti | ---- ===== TWvdSPopupMenu ===== Menu contestuale. ==== Namespace ==== ''WvdS.UI.Controls.Bars'' ==== PXAML ==== ==== Properties ==== | Property | Tipo | Default | Descrizione | ^ Items | TBarItemCollection | nil | Item menu | ==== Metodi ==== | Metodo | Descrizione | ^ ShowAt(x, y) | Mostra menu alla posizione | ^ ShowAtCursor | Mostra menu al cursore | ^ Close | Chiudi menu | ---- ===== Vedi anche ===== * [[.:control-bibliothek|Libreria Control]] * [[.:api-controls-navigation|API Navigation Controls]] * [[.:api-controls-basic|API Basic Controls]]