PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US

WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
GetColor (Function)
In French: DonneCouleur
Allows you to get a set of harmonious colors without having to use a table of colors.
Versions 16 and later
PHP This function is now available for the PHP sites.
Java This function is now available for the Java applications.
Android This function is now available for the Android applications.
New in version 16
PHP This function is now available for the PHP sites.
Java This function is now available for the Java applications.
Android This function is now available for the Android applications.
PHP This function is now available for the PHP sites.
Java This function is now available for the Java applications.
Android This function is now available for the Android applications.
Versions 17 and later
iPhone/iPad This function is now available for the iPhone/iPad applications.
Universal Windows 10 App This function is now available for the Windows Phone applications.
New in version 17
iPhone/iPad This function is now available for the iPhone/iPad applications.
Universal Windows 10 App This function is now available for the Windows Phone applications.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Universal Windows 10 App This function is now available for the Windows Phone applications.
Versions 18 and later
Android Widget This function is now available in Android Widget mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
New in version 18
Android Widget This function is now available in Android Widget mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Android Widget This function is now available in Android Widget mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Example
// Fills the chart data
FOR I = 1 to 12
// Adds the turnover of month number I
grAddData(CHART_MyChart, I, arrValues[I])

// Assigns a color to the series of month number I
grSeriesColor(CHART_MyChart, I, GetColor())
END
Syntax
<Result> = GetColor([<Subscript> [, <Serial>]])
<Result>: Integer
Color in RGB format.
<Subscript>: Optional integer
Number of the color to retrieve.
If this parameter is not specified, the color returned in a color that was never used before.
If this parameter is specified, the same color will always be returned for a given subscript.
Versions 16 and later
PHP This parameter is not available.
New in version 16
PHP This parameter is not available.
PHP This parameter is not available.
<Serial>: Optional Integer constant
Versions 17 and later
Constant indicating the style of color set to retrieve:
colSetDefault
(Default value)
The returned color is chosen among a set of standard colors.
colSetDarkThe returned color is chosen among a set of darker colors (suitable for the TreeMap control for example).
Versions 23 and later
colSetTemplate
New in version 23
colSetTemplate
colSetTemplate
The returned color is chosen among the set of colors defined for the current skin template.
WEBDEV - Server code This constant is not available.
Versions 23 and later
colSetPalette
New in version 23
colSetPalette
colSetPalette
The returned color is chosen among the set of colors defined for the current palette.
WINDEVAndroidAndroid Widget iPhone/iPadWindows MobileUniversal Windows 10 AppJava This constant is not available.
colSetPastelThe returned color is chosen among a set of lighter colors.

WEBDEV - Server codeAndroidAndroid Widget JavaPHP This parameter is not available.
PHP This parameter is not available.
New in version 17
Constant indicating the style of color set to retrieve:
colSetDefault
(Default value)
The returned color is chosen among a set of standard colors.
colSetDarkThe returned color is chosen among a set of darker colors (suitable for the TreeMap control for example).
Versions 23 and later
colSetTemplate
New in version 23
colSetTemplate
colSetTemplate
The returned color is chosen among the set of colors defined for the current skin template.
WEBDEV - Server code This constant is not available.
Versions 23 and later
colSetPalette
New in version 23
colSetPalette
colSetPalette
The returned color is chosen among the set of colors defined for the current palette.
WINDEVAndroidAndroid Widget iPhone/iPadWindows MobileUniversal Windows 10 AppJava This constant is not available.
colSetPastelThe returned color is chosen among a set of lighter colors.

WEBDEV - Server codeAndroidAndroid Widget JavaPHP This parameter is not available.
PHP This parameter is not available.
Constant indicating the style of color set to retrieve:
colSetDefault
(Default value)
The returned color is chosen among a set of standard colors.
colSetDarkThe returned color is chosen among a set of darker colors (suitable for the TreeMap control for example).
Versions 23 and later
colSetTemplate
New in version 23
colSetTemplate
colSetTemplate
The returned color is chosen among the set of colors defined for the current skin template.
WEBDEV - Server code This constant is not available.
Versions 23 and later
colSetPalette
New in version 23
colSetPalette
colSetPalette
The returned color is chosen among the set of colors defined for the current palette.
WINDEVAndroidAndroid Widget iPhone/iPadWindows MobileUniversal Windows 10 AppJava This constant is not available.
colSetPastelThe returned color is chosen among a set of lighter colors.

WEBDEV - Server codeAndroidAndroid Widget JavaPHP This parameter is not available.
PHP This parameter is not available.
Related Examples:
The drawing functions Unit examples (WINDEV): The drawing functions
[ + ] Using the main drawing functions of WINDEV to:
- Initialize an Image control for drawing
- Draw simple shapes
- Write a text into a drawing
- Change the color in a drawing
Components
WINDEVReports and Queries wd230obj.dll
WEBDEV - Server code wd230page.dll
Windows Mobile wp230obj.dll
Java wd230java.jar
Linux wd230obj.so
Android wd230android.jar
Minimum required version
  • Version 15
This page is also available for…
Comments
Click [Add] to post a comment