DialogColor

 

Show a dialog box that can choose the color.

 

int @DialogColor(int color);

 

Parameters

int color : When displaying a dialog box, it becomes the default color, and it is sent to this argument when the user selects the color.

 

Return Value

If it returns 1, the user selects the color and presses OK. If it returns 0, it is canceled

 

Example

color = @RGB(255, 0, 0);
retn = @DialogColor(color);
if(retn == 1) {
   @ObjectSetBackColor("ButtonProgramColor", color);
}

 

Description : Run a color dialog box and press O.K to change the background color of the object with the selected color.

 

Version Information

CE: Available from 10.3.1