====== API: Bars/Ribbon Controls ======
API-referenca za izborničke trake, toolbare i Ribbon.
===== TWvdSBarManager =====
Manager za izbornike i toolbare.
==== Namespace ====
''WvdS.UI.Controls.Bars''
==== PXAML ====
==== Properties ====
| Property | Tip | Default | Opis |
^ MainMenu | TBar | nil | Glavni izbornik |
^ Toolbars | TBarCollection | nil | Toolbari |
^ PopupMenus | TPopupMenuCollection | nil | Kontekstni izbornici |
^ AllowCustomization | Boolean | True | Prilagodba dopuštena |
----
===== TWvdSRibbonControl =====
Microsoft Office-stil Ribbon.
==== Namespace ====
''WvdS.UI.Controls.Bars''
==== PXAML ====
==== Properties ====
| Property | Tip | Default | Opis |
^ Pages | TRibbonPageCollection | nil | Ribbon-stranice |
^ SelectedPage | TRibbonPage | nil | Aktivna stranica |
^ ApplicationButtonText | string | '' | Tekst App-gumba |
^ ApplicationMenu | TRibbonApplicationMenu | nil | App-izbornik |
^ QuickAccessToolbar | TBar | nil | Brzi pristup |
^ IsMinimized | Boolean | False | Ribbon minimiziran |
^ Style | TRibbonStyle | rsOffice2019 | Office2007, Office2010, Office2013, Office2016, Office2019 |
----
===== TWvdSRibbonPage =====
Ribbon-stranica (Tab).
==== Namespace ====
''WvdS.UI.Controls.Bars''
==== Properties ====
| Property | Tip | Default | Opis |
^ Caption | string | '' | Naslov taba |
^ Groups | TRibbonGroupCollection | nil | Grupe |
^ IsVisible | Boolean | True | Vidljivo |
^ ContextualTabGroup | string | '' | Kontekstualni tab |
----
===== TWvdSRibbonGroup =====
Ribbon-grupa unutar stranice.
==== Namespace ====
''WvdS.UI.Controls.Bars''
==== Properties ====
| Property | Tip | Default | Opis |
^ Caption | string | '' | Naziv grupe |
^ Items | TBarItemCollection | nil | Sadržane stavke |
^ ShowDialogLauncher | Boolean | False | Dialog-Launcher |
^ CollapsePriority | Integer | 0 | Prioritet sklapanja |
----
===== TWvdSBarButton =====
Toolbar/Izbornik-gumb.
==== Namespace ====
''WvdS.UI.Controls.Bars''
==== PXAML ====
==== Properties ====
| Property | Tip | Default | Opis |
^ Caption | string | '' | Tekst gumba |
^ Icon | TWvdSImageSource | nil | Ikona |
^ Command | IWvdSCommand | nil | Command |
^ Shortcut | string | '' | Tipkovnička prečica |
^ Hint | string | '' | Tooltip |
^ Size | TBarButtonSize | bsSmall | Small, Large |
^ IsToggle | Boolean | False | Toggle-gumb |
^ IsPressed | Boolean | False | Toggle-status |
^ IsEnabled | Boolean | True | Aktiviran |
==== Events ====
| Event | Signatura | Opis |
^ OnClick | TNotifyEvent | Gumb kliknut |
----
===== TWvdSBarSubItem =====
Podizbornik.
==== Namespace ====
''WvdS.UI.Controls.Bars''
==== PXAML ====
==== Properties ====
| Property | Tip | Default | Opis |
^ Caption | string | '' | Tekst izbornika |
^ Icon | TWvdSImageSource | nil | Ikona |
^ Items | TBarItemCollection | nil | Stavke podizbornika |
----
===== TWvdSBarEditItem =====
Editor u Toolbar/Izborniku.
==== Namespace ====
''WvdS.UI.Controls.Bars''
==== PXAML ====
==== Properties ====
| Property | Tip | Default | Opis |
^ Caption | string | '' | Oznaka |
^ Edit | TWvdSControl | nil | Editor-kontrola |
^ Width | Integer | 100 | Širina |
----
===== TWvdSStatusBar =====
Statusna traka.
==== Namespace ====
''WvdS.UI.Controls.Bars''
==== PXAML ====
==== Properties ====
| Property | Tip | Default | Opis |
^ Items | TStatusBarItemCollection | nil | Status-stavke |
==== TWvdSStatusBarItem ====
| Property | Tip | Opis |
^ Content | TValue | Sadržaj (tekst ili kontrola) |
^ Width | TGridLength | Širina (Auto, *, Pixel) |
^ Alignment | TAlignment | Lijevo, Sredina, Desno |
----
===== TWvdSAlertControl =====
Obavijesti/Toasts.
==== Namespace ====
''WvdS.UI.Controls.Bars''
==== Sintaksa ====
AlertControl.Show('Operation completed successfully',
TAlertType.atSuccess, 3000);
AlertControl.Show('Error occurred', TAlertType.atError);
==== Properties ====
| Property | Tip | Default | Opis |
^ Position | TAlertPosition | apTopRight | TopLeft, TopRight, BottomLeft, BottomRight |
^ DefaultDuration | Integer | 5000 | Trajanje prikaza (ms) |
^ MaxAlerts | Integer | 5 | Max. istovremenih obavijesti |
==== Metode ====
| Metoda | Opis |
^ Show(text, type, duration) | Prikaži obavijest |
^ ShowInfo(text) | Info-obavijest |
^ ShowSuccess(text) | Uspješna obavijest |
^ ShowWarning(text) | Upozorenje |
^ ShowError(text) | Obavijest o grešci |
^ CloseAll | Zatvori sve |
----
===== TWvdSPopupMenu =====
Kontekstni izbornik.
==== Namespace ====
''WvdS.UI.Controls.Bars''
==== PXAML ====
==== Properties ====
| Property | Tip | Default | Opis |
^ Items | TBarItemCollection | nil | Stavke izbornika |
==== Metode ====
| Metoda | Opis |
^ ShowAt(x, y) | Prikaži izbornik na poziciji |
^ ShowAtCursor | Prikaži izbornik na kursoru |
^ Close | Zatvori izbornik |
----
===== Vidi također =====
* [[.:control-bibliothek|Biblioteka kontrola]]
* [[.:api-controls-navigation|Navigation Controls API]]
* [[.:api-controls-basic|Basic Controls API]]