bgiCreateToolbar

Creates a toolbar control for icon buttons and separators. Takes x (Int), y (Int), width (Int), height (Int), and parentWin (Int). Returns gizmo ID on success, 0 if parent not found or creation failed.

BGI GUI

Parameters & Returns

Parameters

x Int
y Int
width Int
height Int
parentWin Int

Returns

Int

Quick Summary

Creates a toolbar control for icon buttons and separators. Takes x (Int), y (Int), width (Int), height (Int), and parentWin (Int). Returns gizmo ID on success, 0 if parent not found or creation failed.

Technical Exegesis...

Creates a toolbar control for displaying icon-based buttons. Searches gizmoMap for parent HWND. Handles scroll panels with GetActualParentHWND. Initializes common controls with ICC_BAR_CLASSES. Auto-increments gizmoIDCount. Creates toolbar with TOOLBARCLASSNAME using WS_CHILD | WS_VISIBLE | TBSTYLE_FLAT | TBSTYLE_TOOLTIPS style (flat appearance with tooltip support). Sends TB_BUTTONSTRUCTSIZE message with sizeof(TBBUTTON) - required for toolbar initialization.

Example

Example.bam
; No example implemented yet