PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Operating mode
WinDevWebDev - Server codeWebDev - Browser codeWinDev MobileReports and QueriesWindowsLinuxWindows MobileWindows PhoneWindows Store appsAndroidAndroid Widget iPhone/iPadJavaPHPAjaxUser code (UMC)External languageHFSQLHFSQL Client/ServerStored proceduresHyper File 5.5OLE DBODBCNative Accesses

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 the sought color.
<Family>: Integer constant
Family of the sought color corresponding to one of the following constants:
colorBorderButtonColor used for the border of the buttons.
colorBorderGeneralColor used for the default border.
colorBorderMenuTabColor used for the border of the main menu or for the border of the tabs.
colorBorderInvertedColor used for the inverted border.
colorBorderNoteWarningColor used for the border of the notes and warnings.
colorBorderSubMenuColor used for the border of the sub-menus.
colorBorderInputAreaColor used for the border of the input areas or for the border of a selected area.
colorBackgroundButtonBackground color used for the buttons.
colorBackgroundGradientBackground color used for the gradient.
colorBackgroundGeneralBackground color used by default.
colorBackgroundRowBackground color used for the table rows or for the looper rows.
colorBackgroundMenuTabBackground color used for the main menu or for the tabs.
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.
colorBackgroundInpurAreaBackground color used for the input areas.
colorTextButtonColor of the text used in the buttons.
colorTextGeneralDefault text color.
colorTextLink1Color of the text used for the links 1.
colorTextLink2Color of the text used for the links 2.
colorTextMenuTabColor of the text used for the main menu or for the tabs.
colorTextInvertedInverted text color.
colorTextNoteWarningColor of the text used for the notes and for the warnings.
colorTextSubMenuColor of the text used for the sub-menus.
colorTextSubTitleColor of the text used for the sub-titles.
colorTextTitleColor of the text used for the titles.
colorTextInputAreaColor of the text 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
Reports and Queries wd190page.dll
Minimum version required
  • Version 17
This page is also available for…
Comments
Click [Add] to post a comment