LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to make the grouped objects same size in the front panel?

As I design my front panel,there are many
objects that has the same type. At the begining,
I copy and paste the objec one bye one, so they
has the same size(height & width). But when I
change some one size, I must change the others one bye one. I'hope to compelete this work easy!
(such as,group the objects, and click 'make same size' button)
0 Kudos
Message 1 of 4
(3,074 Views)
It may be easy to use "property nodes"
Right click on control
select "create" "property node"
You can change controls size in here
for a button look for "button size" etc.
0 Kudos
Message 2 of 4
(3,074 Views)
That's a good response Dr Spite, its all I could think of too. I suppose wiring a 'desired' value to each of the "Attribute nodes>Text Size, etc." to the controls and setting them all to the same value would get the job done. You could then remove the extra nodes to clean up the code, as the last set values will remain.
It seems there must be a better way, or at least this be a 'wish list item' for future LV versions. Doug
0 Kudos
Message 3 of 4
(3,074 Views)
Hello,

The easiest way to change the properties of multiple front panel items at the same time is to use a Type Def control. I have attached an example VI (and custom control) that demonstrates how to do this. Detach the VI and .ctl file to the same folder. Then Open the VI. All five controls are exactly the same, and you shouldn't be able to change the properties of any of them. Now open the .ctl file. Change something about the control (like its color). Notice the controls in the VI gray out? Now go to the File pull-down menu in the .ctl and choose "Apply Changes", and you will see that all the controls in your VI change to reflect the new .ctl file.

You can read more about Type Defs in the G Programming Reference Manual for LabVIEW.

I hope this su
ggestion helps. Let me know if you have any other questions. Have a pleasant day.

Sincerely,
Darren Nattinger
Applications Engineer
National Instruments
Download All
0 Kudos
Message 4 of 4
(3,074 Views)