ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Controls, pages and windows / Drawing functions / Types of variables
  • Properties specific to Palette variables
  • Functions manipulating Palette variables
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
The Palette type is used to define the advanced characteristics of a color palette. You can define and change the characteristics of this palette using different WLanguage properties.
This type of variable is used:
  • by the Icon type.
  • New in version 2025
    WINDEVAndroidiPhone/iPad to manipulate color palettes for use in windows and projects.
Note: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable.
New in version 2025
Android This type of variable is now available for Android applications.
Example
// Récupération de la première couleur de la palette de la première image d'une icône
MonIcône is Icon = "MonIcone.ico"
Palette1 is Palette = MonIcône.Palette[1]
Couleur1 is Color = Palette1[1]
Properties

Properties specific to Palette variables

The following properties can be used to handle a color palette:
Property nameType usedEffect
ColorArray of ColorArray containing the palette colors.

Functions manipulating Palette variables

New in version 2025
PaletteGenerate
Generates a palette from a base color.
New in version 2025
PaletteGet
Gets the palette currently used by the project or window.
New in version 2025
PaletteLoad
Loads a palette from a .wdpalette file.
New in version 2025
PaletteSave
Saves a palette to a file.
Minimum version required
  • Version 20
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help