CColorRef:ChoosePal
The ChoosePal method opens the Windows ChooseColor common dialog to interactively change the components of a CColorRef. This method opens the dialog in maximized mode showing the palette tool; to open in minimized mode, use Choose instead.
bResult = CColorRef:ChoosePal() |
On success (colors were changed or to proceed), this method updates the properties and returns true.
On failure, this method returns false.
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 interactively changes the properties of a CColorRef:
|
-- create a new CColorRef |
|
-- set bright yellow |
|
-- if OK button clicked, show results |
|
-- print new color |
|
|
Mira Pro x64 Script User's Guide, Copyright Ⓒ 2023 Mirametrics,
Inc. All Rights Reserved.