# MX\_CHOOSECOLOR

> [HTML Version](mx_choosecolor.htm)

**xcall MIAMEX, MX\_CHOOSECOLOR, rgb, status**

MX\_CHOOSECOLOR  (MIAMEX 164) displays the color selection dialog and returns the selected RGB value. 

**Parameters**

_rgb_  (B,4 or F6)  \[in/out\]

The RGB color value. On input, it determines the default color selected in the dialog; on output it returns the newly selected color.

_status_  (F)  \[out\]

is 0 for OK, or else indicates an error. Executing this function in a non-GUI environment should return -1.