Category: BGI GUI
Syntax:
bgiAddToolbarButton:Int(toolbarID:Int, text:String, buttonID:Int, imageIndex:Int, enabled:Int)
Int
Adds an image button to a toolbar.
Takes toolbarID (Int), text (String), buttonID (Int), imageIndex (Int) - which
image in the strip, from 0 - and enabled (Int).
Returns 1 (not a handle), or 0 if toolbarID is not a toolbar.
A click raises BGI_EVENT_COMMAND_CLICK with ID BGI_EVENT_ID_TOOLBAR, the
toolbar as the source and buttonID as the data. In this edition the
text is shown as the button's tooltip; Windows does not show it.
View detailed documentation online
;No example implemented yet
BambooBasic © 2026 Michael Denathorn