Table of Contents

CHOOSECOLOR Service

Description

Calls the common Windows Color dialog box, shown below:

Parameters

ParameterDescription
objectOwner window.
valueColor value then initialize this dialog box or null if operation was canceled.
ReturnvalueSelected color as a decimal number.\\

See Also

Utility() function, BACKCOLOR property, FORECOLOR property, GRADIENTSTYLE property

Example

* Set the color for CtrlEntID
Color  = Get_Property(CtrlEntID, "BACKCOLOR")
Parent = CtrlEntID [1,"."]
Color  = Utility("CHOOSECOLOR", Parent, Color)
if len(Color) then
Call Set_Property(Parent, "BACKCOLOR", Color)
end