PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Operating mode
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
ColorPalette (Function)
In French: CouleurPalette
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:
Versions 23 and later
colorBorderWarning
New in version 23
colorBorderWarning
colorBorderWarning
Color used for the border of warnings.
colorBorderButtonColor used for the border of buttons.
colorBorderGeneralColor used for the default border.
Versions 23 and later
colorBorderInformation
New in version 23
colorBorderInformation
colorBorderInformation
Color used for the border of information.
colorBorderMenuTabColor used for the border of main menu or tabs.
Versions 23 and later
colorBorderModification
New in version 23
colorBorderModification
colorBorderModification
Color used for the border of modifications.
colorBorderInvertedColor used for the inverted border.
colorBorderNoteWarningColor used for the border of notes and warnings.
colorBorderSubMenuColor used for the border of sub-menus.
Versions 23 and later
colorBorderValidation
New in version 23
colorBorderValidation
colorBorderValidation
Color used for the border of validations.
colorBorderInputAreaColor used for the border of input areas or selected area.
Versions 23 and later
colorBackgroundWarning
New in version 23
colorBackgroundWarning
colorBackgroundWarning
Background color used for the warnings.
colorBackgroundButtonBackground color used for the buttons.
colorBackgroundGradientBackground color used for the gradient.
colorBackgroundGeneralBackground color used by default.
Versions 23 and later
colorBackgroundInformation
New in version 23
colorBackgroundInformation
colorBackgroundInformation
Background color used for the information.
colorBackgroundRowBackground color used for the rows found in a table or looper.
colorBackgroundMenuTabBackground color used for the main menu or for the tabs.
Versions 23 and later
colorBackgroundModification
New in version 23
colorBackgroundModification
colorBackgroundModification
Background color used for the modifications.
colorBackgroundInvertedInverted background color.
colorBackgroundNoteWarningBackground color used for the notes and for the warnings.
colorBackgroundSubMenuBackground color used for the sub-menus.
colorBackgroundSubTitleBackground color used for the sub-titles.
colorBackgroundTitleBackground color used for the titles.
Versions 23 and later
colorBackgroundValidation
New in version 23
colorBackgroundValidation
colorBackgroundValidation
Background color used for the validations.
colorBackgroundInpurAreaBackground color used for the input areas.
Versions 23 and later
colorTextWarning
New in version 23
colorTextWarning
colorTextWarning
Text color used for the warnings.
colorTextButtonText color used in the buttons.
colorTextGeneralDefault text color.
Versions 23 and later
colorTextInformation
New in version 23
colorTextInformation
colorTextInformation
Text color used for the information.
colorTextLink1Text color used for the links 1
colorTextLink2Color of the text used for the links 2.
colorTextMenuTabText color used for the main menu or for the tabs.
Versions 23 and later
colorTextModification
New in version 23
colorTextModification
colorTextModification
Text color used for the modifications.
colorTextInvertedInverted text color.
colorTextNoteWarningText color used for the notes and warnings.
colorTextSubMenuText color used for the sub-menus.
colorTextSubTitleText color used for the sub-titles.
colorTextTitleText color used for the titles.
Versions 23 and later
colorTextValidation
New in version 23
colorTextValidation
colorTextValidation
Text color used for the validations.
colorTextInputAreaText color used for the input areas.
<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 requested palette does not exist, ColorPalette uses the palette of a more general element:
  • In a page (without palette or that uses the palette of the project) : ColorPalette searches for the palette of the parent component (if the page is included in a component) or for the palette of the project (if the page is directly included 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 included in another component) or for the palette of the project (if the component is directly included in the application).
  • In the project (without palette or that uses the default palette), ColorPalette returns an error because the default palette is not available by programming.
Components
WEBDEV - Server code wd230page.dll
WEBDEV - Browser code WDJS.DLL
Linux wd230page.so
Minimum required version
  • Version 17
This page is also available for…
Comments
Click [Add] to post a comment