bgiOpenColorDialog

Category: BGI GUI

Syntax:

bgiOpenColorDialog:String(window:Int)


Parameters

Returns

String



Summary

Shows a colour chooser and returns the colour picked.

Takes window (Int), which must be a BGI window. The chooser opens on black each time.

Returns "RGB(r,g,b)" on success, or an empty string if the dialog is cancelled or window is not a BGI window. The colour can also be read back afterwards with bgiRequestedRed, bgiRequestedGreen and bgiRequestedBlue (0-255), or bgiRequestedRedF and friends (0.0-1.0).

View detailed documentation online



Example

;No example implemented yet


BambooBasic © 2026 Michael Denathorn