ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Standard functions / Windows functions / Miscellaneous WINDEV functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
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.
Example
// Remplit les données du champ Graphe
FOR I = 1 TO 12
	// Ajoute le chiffre d'affaires du mois numéro I
	grAddData(GRF_MonGraphe, I, tabValeurs[I])

	// Affecte une couleur à la série du mois numéro I
	grSeriesColor(GRF_MonGraphe, 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 is a color that has never been used.
If this parameter is specified, the same color will always be returned for a given subscript.
<Serial>: Optional Integer constant
Constant indicating the style of color set to retrieve:
colSetDarkThe returned color is chosen among a set of darker colors (suitable for the TreeMap control for example).
colSetDefault
(Default value)
The returned color is chosen among a set of standard colors.
colSetPaletteThe returned color is chosen among the set of colors defined for the current palette.
WINDEVJava This constant is not available.
colSetPastelThe returned color is chosen among a set of lighter colors.
colSetTemplateThe returned color is chosen among the set of colors defined for the current skin template.
Remarks
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
Business / UI classification: UI Code
Component: wd300obj.dll
Minimum version required
  • Version 15
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help