Description
Displays the standard color selection dialog box.
Syntax
ChooseColor ( color {, customcolors [ ] } )
Argument |
Description |
---|---|
color |
A long passed by reference that represents the color selected in the dialog box |
customcolors (optional) |
A long array of custom colors passed by reference to the color selection dialog box |
Return value
Integer.
Returns 1 if the function succeeds, 0 if the user selects cancel (or the dialog box is closed), -1 if an error occurs.
Examples
This example displays the color selection dialog box with a base color of red and with two different custom colors defined:
long red, green, blue long custom[ ] integer li_color red = 255 custom[1]=rgb(red, 200, blue) custom[2]=8344736 li_color = ChooseColor( red, custom [ ] )
See also