bgiAddToolbarButton

Adds an icon button to the toolbar with specified properties. Takes toolbarID (Int), text (String), buttonID (Int), imageIndex (Int), and enabled (Int). Returns 1 on success, 0 if toolbar not found.

BGI GUI

Parameters & Returns

Parameters

toolbarID Int
text String
buttonID Int
imageIndex Int
enabled Int

Returns

Int

Quick Summary

Adds an icon button to the toolbar with specified properties. Takes toolbarID (Int), text (String), buttonID (Int), imageIndex (Int), and enabled (Int). Returns 1 on success, 0 if toolbar not found.

Technical Exegesis...

Adds an icon button to a toolbar control with specified image, command ID, and enabled state. Searches gizmoMap for the toolbar ID. Creates TBBUTTON structure with ZeroMemory initialization. Sets iBitmap to imageIndex (icon from image strip). Sets idCommand to buttonID (command ID sent in click events). Sets fsState to TBSTATE_ENABLED if enabled is non-zero, 0 if disabled. Sets fsStyle to BTNS_BUTTON (standard button, no autosize). Sets iString to -1 (no text label, icon only).

Example

Example.bam
; No example implemented yet