Color Definition Control Syntax
Syntax
[%P=A5_COLOR_PICKER([Mode,[Default_Color]]%.Width New_Color]
Note: You must not have any space characters in the finished command.
Argument |
Type |
Description |
| Mode | C |
Optional. Defines the format of the Default_Color value. Allowable values are "RGB" or "HEX". |
| Default_Color | C |
Optional. The default color in RGB ("n1,n2,n3") or hexadecimal ("A1,B2,C3") formats. |
| Width | N |
The width of the control. |
| New_Color | C |
The selected color name |
Description
This syntax produces a color picker that displays the Alpha Five color palette and returns a color name.
Example
dim default_color as C dim new_color as C default_color="7F,7F,7F" ui_dlg_box("Title",<<%dlg% [%P=a5_color_picker("HEX",default_color)%.20new_color]; %dlg%) ui_msg_box("",""+new_color) |
See Also
Xdialog Language Directives and Operators, Xdialog Control Reference
Supported By
Alpha Five Version 6 and Above