bgiOpenColourDialog

Displays a Windows Color Picker dialog and returns the selected color as RGB string. Takes window (Int). Returns formatted string "RGB(r,g,b)" on success, empty string if user cancels or window not found.

BGI GUI

Parameters & Returns

Parameters

window Int

Returns

String

Quick Summary

Displays a Windows Color Picker dialog and returns the selected color as RGB string. Takes window (Int). Returns formatted string "RGB(r,g,b)" on success, empty string if user cancels or window not found.

Technical Exegesis...

Displays a Windows Color Picker dialog and returns the selected color as RGB string. Searches gizmoMap for window ID to get parent HWND. Creates CHOOSECOLOR structure with CC_FULLOPEN | CC_RGBINIT flags (shows full dialog with custom colors), lpCustColors array (16 custom color slots). Calls ChooseColor() to show dialog.

Example

Example.bam
; No example implemented yet