LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

custom control appearance update

hi all,

 

I have a lot of button controls that I customized by changing the appearance (images, color, etc.). These controls are used in many VI and subVI in my program. In the case I want to change the appearance of one type of control, I have to change all the controls manually. Is there a way to update the control appearance automatically when the appearance is changed on one control. The use of typedef doesnt work because only the type of the control can be updated.

any solution?

 

thank you

 

Cedric

0 Kudos
Message 1 of 3
(2,730 Views)

Are you saying you update the appearance while the program is running, or only beforehand?

 

If beforehand, then yes, typedefs are the answer as long as you use "strict" typedefs.

 

If this is while running, then all I can think is that you would need to run a routine to gather all the references to the controls in question in a (probably global) array, and then modify reference that array with a FOR loop whenever you need to alter a property node on one control that also changes all of the others.

0 Kudos
Message 2 of 3
(2,720 Views)

It works with strict typedef. Thank you Kyle97330 !!

 

Cédric

0 Kudos
Message 3 of 3
(2,673 Views)