![]() |
![]() | Object Model Reference : Classes : C : CorelScriptTools : Methods : CorelScriptTools.GetColor |
Function GetColor(Red As Long, Green As Long, Blue As Long) As Boolean
Member of CorelScriptTools
The GetColor method displays a standard Windows Color dialog box and returns color setting values from the RGB color model (Red, Green, Blue).
The GetColor function returns one of the following values:
• |
True (-1) = the Cancel button was not clicked
|
• |
False (0) = the Cancel button was clicked
|
Here is a code example:
GETCOLOR MyRed%, MyGreen%, MyBlue% |
The above example displays the following dialog box and returns the RGB color settings for the selected color to the numeric variables MyRed, MyGreen, and MyBlue.
![]() |
![]() |
![]() |
Copyright 2013 Corel Corporation. All rights reserved.