CColorRef:Choose
The Choose method opens the Windows ChooseColor common dialog to interactively change the components of a CColorRef. This method opens the dialog in minimized mode; to open in maximized mode, showing the palette, use ChoosePal instead.
bResult = CColorRef:Choose() |
This method returns true if the OK button was clicked on the ChooseColor. After clicking OK, the CColorRef members are updated with the new color components.
The following script fragment interactively changes the properties of a CColorRef:
|
-- create a new CColorRef |
|
-- set bright yellow |
|
-- if OK button clicked, show results |
|
-- print new color |
|
|