ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Web-specific functions / Miscellaneous WEBDEV functions
  • Operating mode
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Returns a color found in the current palette.
Example
Trace(ColorPalette(colorBackgroundGeneral))
Syntax
<Color> = ColorPalette(<Family> [, <Variation>])
<Color>: Integer
Value of sought color.
<Family>: Integer constant
Family of sought color corresponding to one of the following constants:
colorBackgroundButtonBackground color used for the buttons.
colorBackgroundGeneralBackground color used by default.
colorBackgroundGradientBackground color used for the gradient.
colorBackgroundInformationBackground color used for the information.
colorBackgroundInpurAreaBackground color used for input fields.
colorBackgroundInvertedInverted background color.
colorBackgroundMenuTabBackground color used for the main menu or for the tabs.
colorBackgroundModificationBackground color used for the modifications.
colorBackgroundNoteWarningBackground color used for the notes and for the warnings.
colorBackgroundRowBackground color used for the rows found in a table or looper.
colorBackgroundSubMenuBackground color used for the submenus.
colorBackgroundSubTitleBackground color used for the sub-titles.
colorBackgroundTitleBackground color used for the titles.
colorBackgroundValidationBackground color used for the validations.
colorBackgroundWarningBackground color used for the warnings.
colorBorderButtonColor used for the border of buttons.
colorBorderGeneralColor used for the default border.
colorBorderInformationColor used for the border of information.
colorBorderInputAreaColor used for the border of input areas or selected area.
colorBorderInvertedColor used for the inverted border.
colorBorderMenuTabColor used for the border of main menu or tabs.
colorBorderModificationColor used for the border of modifications.
colorBorderNoteWarningColor used for the border of notes and warnings.
colorBorderSubMenuColor used for the border of submenus.
colorBorderValidationColor used for the border of validations.
colorBorderWarningColor used for the border of warnings.
colorTextButtonText color used in the buttons.
colorTextGeneralDefault text color.
colorTextInformationText color used for the information.
colorTextInputAreaText color used for input areas.
colorTextInvertedInverted text color.
colorTextLink1Text color used for the links 1
colorTextLink2Text color used for the links 2.
colorTextMenuTabText color used for main menus or tabs.
colorTextModificationText color used for modifications.
colorTextNoteWarningText color used for notes and warnings.
colorTextSubMenuText color used for submenus.
colorTextSubTitleText color used for subtitles.
colorTextTitleText color used for titles.
colorTextValidationText color used for validations.
colorTextWarningText color used for warnings.
<Variation>: Optional integer
Variation of the color (between 1 and 3). The first variation of the color is selected by default.
Remarks

Operating mode

ColorPalette chooses the palette according to the context:
  • In the code of a control or in the code of a page, the function returns the colors found in the palette of the page.
  • In the code of the project, the function returns the colors found in the palette of the project.
If the desired palette does not exist, ColorPalette uses the palette of a more general element:
  • In a page (without a palette or using the project palette): function ColorPalette searches for the palette of the parent component (if the page is in a component) or of the project (if the page is directly in the application).
  • In a component (without palette or that uses the default palette), ColorPalette searches for the palette of the parent component (if the component is in another component) or of the project (if the component is directly in the application).
  • In the project (without palette or that uses the default palette), ColorPalette returns an error because the default palette cannot be used programmatically.
Component: wd300page.dll
Minimum version required
  • Version 17
Comments
Click [Add] to post a comment

Last update: 02/21/2025

Send a report | Local help