02-09-2016 05:04 PM
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
02-09-2016 05:14 PM
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.
02-10-2016 09:35 AM