|
|
|
|
|
ColorPalette (Function) In french: CouleurPalette Returns a color found in the current palette. 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: | | colorBackgroundButton | Background color used for the buttons. | colorBackgroundGeneral | Background color used by default. | colorBackgroundGradient | Background color used for the gradient. | colorBackgroundInformation | Background color used for the information. | colorBackgroundInpurArea | Background color used for input fields. | colorBackgroundInverted | Inverted background color. | colorBackgroundMenuTab | Background color used for the main menu or for the tabs. | colorBackgroundModification | Background color used for the modifications. | colorBackgroundNoteWarning | Background color used for the notes and for the warnings. | colorBackgroundRow | Background color used for the rows found in a table or looper. | colorBackgroundSubMenu | Background color used for the submenus. | colorBackgroundSubTitle | Background color used for the sub-titles. | colorBackgroundTitle | Background color used for the titles. | colorBackgroundValidation | Background color used for the validations. | colorBackgroundWarning | Background color used for the warnings. | colorBorderButton | Color used for the border of buttons. | colorBorderGeneral | Color used for the default border. | colorBorderInformation | Color used for the border of information. | colorBorderInputArea | Color used for the border of input areas or selected area. | colorBorderInverted | Color used for the inverted border. | colorBorderMenuTab | Color used for the border of main menu or tabs. | colorBorderModification | Color used for the border of modifications. | colorBorderNoteWarning | Color used for the border of notes and warnings. | colorBorderSubMenu | Color used for the border of submenus. | colorBorderValidation | Color used for the border of validations. | colorBorderWarning | Color used for the border of warnings. | colorTextButton | Text color used in the buttons. | colorTextGeneral | Default text color. | colorTextInformation | Text color used for the information. | colorTextInputArea | Text color used for input areas. | colorTextInverted | Inverted text color. | colorTextLink1 | Text color used for the links 1 | colorTextLink2 | Text color used for the links 2. | colorTextMenuTab | Text color used for main menus or tabs. | colorTextModification | Text color used for modifications. | colorTextNoteWarning | Text color used for notes and warnings. | colorTextSubMenu | Text color used for submenus. | colorTextSubTitle | Text color used for subtitles. | colorTextTitle | Text color used for titles. | colorTextValidation | Text color used for validations. | colorTextWarning | Text 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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|