From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to change color of a control in a cluster passed via reference to a subvi

A reference to a cluster of controls is made (similar functionality as passing to a subvi - but done this way for brevity). The color of the cluster and the color of the label and caption for each control within the cluster can be changed. But how to change the color of the control? Specifically, in the attached file, how would the background color of the button be changed?
0 Kudos
Message 1 of 2
(2,460 Views)
When reading Controls[] property from a cluster, the controls references are generic, not typed to the actual type of the control. Properties for generic control references are not the complete set of properties available for the control. You have to use "To More Specific Class" to typecast the reference to the actual type of the control before accessing a complete property node. Example attached.
Jean-Pierre


LabVIEW, C'est LabVIEW

Message 2 of 2
(2,460 Views)