@COLORDLG

Top  Previous  Next

Syntax:

 

@COLORDLG(<default color>, <list>)

 

Description:

 

This function displays a Windows color dialog, and returns the name of the color that was selected (or a null string if no color was selected.) The string <default color> contains an optional color which will be used as default selected color. The string <list> specifies an optional list with up to 16 user defined colors.

Note that when using a list, if the user adds some colors to the custom colors, the list will be automatically updated at the function exit.

 

OK:

 

True if dialog was closed with the OK button, otherwise false.

 

Example:

 

%F = @colordlg(red, 1)

 

See also: