Color Select Control Syntax
Syntax
[%P=UI_SELECT_COLOR2([Default_Color]%.Width New_Color]
Note: You must not have any space characters in the finished command.
Argument |
Type |
Description |
| Default_Color | C |
Optional. A variable containing a default color name. |
| 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.
Examples
dim default_color as C dim new_color as C default_color="Pink" ui_dlg_box("Title",<<%dlg% [%P=ui_select_color2(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 5 and Above