Back

Topic

[KB857]RUN-TIME COLOR PICKER

Tags: HMI, VBA

8 years ago
By RM
Options
Print
Applies to:

All versions of PcVue


Summary:

A sample project implementing a run-time color picker.
Originator: LM


Details:

A sample project which allows the user to select a color from a color picker, and color a symbol, at run time. The color values (RGB) are saved in three variables – each instantiation of the symbol requiring a different branch.

The required VBA UserForm, Class and Module are all integrated in the symbol and saved in a library.

A very basic Application Architect RGB model is also included with another template just to have a mimic in which we can instantiate some symbols. After generation, the VBA control property of instantiated symbols must be set in order to have a fully functional button.


Sample project:PalColVBA.zip created with PcVue 11.2.

Download attachments:



Additional Info

Created on: 22 Mar 2017 Last update: 30 May 2024