Back

Topic

[KB730]Changing the Color Palette programatically

Tags: Drawing, VBA

10 years ago
By RM
Options
Print
Applies to:

PcVue 10.0 onwards


Summary:

The color palette can be changed by loading an alternative palette file (PALCOL.DAT) using VBA.


Details:

The VBA method ThisProject.LoadColors allows alternative color palettes to be dynamically loaded. The palette is loaded from a named file that must have the same format as PALCOL.DAT. Any indexed colors in use in the HMI are automatically updated.

A small sample project, generated with PcVue 11.1, is provided as an example.

image1

Download attachments: Palette.zip



Created on: 11 Feb 2015 Last update: 13 May 2024