Equinox Online Help - Language Reference - A to Z

Home

ChangePalette

Applies to
SyntaxChangePalette IndexExpression, rgbExpression
Action[Statement] Changes the RGB value of an entry in the Equinox colour palette.
ScopeUsable anywhere.
Notes

This statement allocates an RGB value via the rgbExpression parameter. This value is normally obtained from the RGB function which specifies the amount of red green and blue. The IndexExpression parameter determines which entry in the palette to change and can take values from zero to 255. Note that the lower sixteen palette entries are reserved for use by Equinox. Normally colours are changed via the colour palette in the Property dialog. This statement allows the developer to change them at runtime.

Note that Equinox does not update the display to take account of colour changes made via this statement. The UpdateDisplay statement should be used if required.

CategoryFonts and Colours
See Also ColourName_ColorName, ColourNumber_ColorNumber, FontHandle, FontName, FontNumber, PaletteRGB, RGB, RGBValues
Example

This line sets the colour 27 in the palette to one with quite a lot of red in it and then forces the entire display to be updated.

ChangePalette 27, RGB(245,20,13)
UpdateDisplay True