PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN

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
SelectColor (Function)
In french: SelectCouleur
Opens the window for color selection while selecting the specified color.
Windows color picker
Windows color picker
Versions 15 and later
Java This function is now available for Java applications.
New in version 15
Java This function is now available for Java applications.
Java This function is now available for Java applications.
Java Remark: The picker corresponds to the color picker supplied with the JRE.
Example
Reports and QueriesWindowsJavaUser code (UMC)
Value is int
SelectionResult is boolean
 
Value =  RGB(10, 17, 69)
Info("Initial color: " + Value)
SelectionResult = SelectColor(Value, scInit)
Info("Final color: " + Value)
Syntax
Reports and QueriesWindowsJavaUser code (UMC)

Selecting a color on Windows Hide the details

<Result> = SelectColor(<Initial value> [, <Options> [, <Custom colors>]])
<Result>: Boolean
Exit mode from the window for color selection:
  • True if the OK button was clicked by the user,
  • False otherwise (Cancel button).
<Initial value>: Integer
Initial color selected in the window for color selection. This color can correspond to:
When the color selection window is closed, <Initial value> contains the value of the selected color if the user validated the window using the OK button.
<Options>: Optional constant or optional combination of constants
Options for displaying the window for color selection
scHelpEnables the help button.
Window displayed: Standard window for color selection of Windows.
scPersoColor
  • If <Custom colors> is specified, the Windows standard color selection window is displayed and the button for creating custom colors is enabled.
  • If <Custom colors> is not specified, the color selection window is displayed.
scSolidColorOnly non-hatched colors are allowed.
Window displayed: Window for color selection.
scInit
(Default value)
The color selected by default in the window for color selection corresponds to the color passed in parameter to SelectColor.
Window displayed: Window for color selection.
scNotPersoColorThe custom color creation button is dimmed.
Window displayed: Standard window for color selection of Windows.
Versions 18 and later
scSystem
New in version 18
scSystem
scSystem
Displays the standard window for color selection of Windows.
scAnyColorAll the colors are allowed.
Window displayed: Window for color selection.

Versions 18 and later
Remark: When combining constants, the new window for color selection is displayed only if all the requested features are available in this window.
New in version 18
Remark: When combining constants, the new window for color selection is displayed only if all the requested features are available in this window.
Remark: When combining constants, the new window for color selection is displayed only if all the requested features are available in this window.
Java This parameter is ignored.
<Custom colors>: Optional address
Address of an array of 16 integers containing the RGB codes of the custom colors. If this parameter is not specified, 16 shades of gray are proposed.
Java This parameter is ignored.
Business / UI classification: UI Code
Component: wd260std.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment