- Image-Größen: 16x16 / 24x24 / 32x32
- sendet wahlweise Gadget- oder Menü-Events (#PB_Event_Gadget / #PB_Event_Menu)
- Separator und Spacer Elemente verfügbar
- Buttons können alternativ mit Popup-Menüs verknüpft werden.
- Tooltipps für einzelne Buttons
- automatische Anpassung der Button-Breite an die maximale Textbreite möglich
- automatische Anpassung der Gadgethöhe möglich, wenn Button-Text verwendet wird
- automatische Größenanpassung des Gadgets an die Fenstergröße möglich (#MoveX|#MoveY|#ResizeWidth|#ResizeHeight)
- ComoBox / SpinGadget / ButtonGadget können zusätzlich hinzugefügt werden
- DPI kompatible
Code: Alles auswählen
; ToolBar::AddItem() - similar to 'AddGadgetItem()'
; ToolBar::AttachPopupMenu() - attachs a popup menu to the button
; ToolBar::ButtonText() - similar to 'ToolBarButtonText()'
; ToolBar::ComboBox() - adds a ComboBox to the toolbar
; ToolBar::DisableButton() - similar to 'DisableToolBarButton()'
; ToolBar::DisableReDraw() - disable/enable redrawing
; ToolBar::Separator() - similar to 'ToolBarSeparator()'
; ToolBar::EventNumber() - returns the event number (integer) of the toolbar button
; ToolBar::EventID() - returns the event ID (string) of the toolbar button
; ToolBar::EventState() - returns the state of a toolbar gadget (e.g. ComboBox)
; ToolBar::Free() - similar to 'FreeToolBar()'
; ToolBar::Gadget() - similar to 'CreateToolBar()'
; ToolBar::GetAttribute() - similar to 'GetGadgetAttribute()'
; ToolBar::GetIndex() - returns item index of the corresponding event number
; ToolBar::GetIndexFromID() - returns item index of the corresponding event ID
; ToolBar::GetGadgetNumber() - returns the gadget number of the gadget at index position
; ToolBar::GetState() - similar to 'GetGadgetState()'
; ToolBar::GetText() - similar to 'GetGadgetText()'
; ToolBar::ImageButton() - similar to 'ToolBarImageButton()'
; ToolBar::HideButton() - hide button
; ToolBar::Height() - similar to 'ToolBarHeight()'
; ToolBar::SetAutoResizeFlags() - [#MoveX|#MoveY|#ResizeWidth|#ResizeHeight]
; ToolBar::SetAttribute() - similar to 'SetGadgetColor()'
; ToolBar::SetColor() - similar to 'SetGadgetAttribute()'
; ToolBar::SetFont() - similar to 'SetGadgetFont()'
; ToolBar::SetGadgetFlags() - [#Top/#Bottom]
; ToolBar::SetPostEvent() - changes PostEvent [#PB_Event_Gadget/#PB_Event_Menu]
; ToolBar::SetSpinAttribute() - similar to 'SetGadgetAttribute()' for the SpinGadget [#PB_Spin_Minimum/#PB_Spin_Maximum]
; ToolBar::SetState() - similar to 'SetGadgetState()'
; ToolBar::SetText() - similar to 'SetGadgetText()'
; ToolBar::Spacer() - inserts available space between buttons
; ToolBar::SpinBox() - adds a SpinGadget to the toolbar
; ToolBar::ToolTip() - similar to 'ToolBarToolTip()'
; ToolBar::TextButton() - similar to 'ButtonGadget()'