This class contains a label that precedes a color well, which allows the user to bring up a color dialog box by double clicking. When connected to an AFXStringKeyword, this widget will assign the value of the button's current color to the keyword in hex format (for example, "FF0000").
Constructor.
Argument | Type | Default | Description |
p | FXComposite | Parent widget. | |
text | String | Label string. | |
tgt | FXObject | None | Message target. |
sel | Int | 0 | Message ID. |
opts | Int | 0 | Options and hints. |
x | Int | 0 | X coordinate of origin. |
y | Int | 0 | Y coordinate of origin. |
w | Int | 0 | Width of the widget. |
h | Int | 0 | Width of the widget. |
pl | Int | DEFAULT_SPACING | Left padding (margin). |
pr | Int | DEFAULT_SPACING | Right padding (margin). |
pt | Int | DEFAULT_SPACING | Top padding (margin). |
pb | Int | DEFAULT_SPACING | Bottom padding (margin). |