CColorRef:Choose CColorRef:delete

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.

Syntax

bResult = CColorRef:ChoosePal()

bullet.gif    On success (colors were changed or to proceed), this method updates the properties and returns true.

bullet.gif    On failure, this method returns false.

Remarks

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.

Example

The following script interactively changes the properties of a CColorRef:

C = new_colorref()

-- create a new CColorRef

C:Set(255,255,0)

-- set bright yellow

if C:ChoosePal() then

-- if OK button clicked, show results

  Printf("%d,%d,%d", C.R, C.G, C.B )

-- print new color

end

  

Related Topics

CColorRef, Choose


Mira Pro x64 Script User's Guide, v.8.73 Copyright Ⓒ 2024 Mirametrics, Inc. All Rights Reserved.