This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v20 R7
Select RGB Color
|
Select RGB Color {( defaultColor {; message} )} -> Function result | ||||||||
Parameter | Type | Description | ||||||
defaultColor | Longint |
![]() |
Preselected RGB color | |||||
message | Alpha |
![]() |
Title of selection window | |||||
Function result | Longint |
![]() |
RGB color | |||||
The Select RGB Color command displays the system color selection window and returns the RGB value of the color selected by the user.
The system color selection window appears as follows:
Macintosh | Windows |
![]() | ![]() |
The optional defaultColor parameter preselects a color in the window. This parameter can be used, for example, to restore by default the last color set by the user. Pass an RGB-format color value in this parameter (for more information, refer to the description of the OBJECT SET RGB COLORS command). You can use one of the constants in the SET RGB COLORS theme. If the defaultColor parameter is omitted or if you pass 0, the color black is selected when the dialog box is opened.
The optional message parameter customizes the title of the system window. By default, if this parameter is omitted, the title “Colors” is displayed.
The effect of validating this dialog box differs depending on the platform:
Note: This command must not be executed on the server machine nor within a Web process.
Product: 4D
Theme: System Environment
Number:
956
Created: 4D v11 SQL
4D Language Reference ( 4D v20 R7)