LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamically change the size of Controls in front pannel

Is it possible to change programmatically the size of Progress Bar Controls in a Front Panel? For example, I want to control four Progress Bars’ size to ensure their dynamic overall size ratio based on a certain rule, whilst they are also indicating their own progresses, respectively.


Thanks
0 Kudos
Message 1 of 2
(2,673 Views)
Of course - that's what PROPERTY NODES are for.

Use the POSITION property to set the LEFT and/or TOP pixel coordinates.

Use the HOUSING SIZE property to set the WIDTH and HEIGHT you want.

For reasons I'm not sure of, you cannot write to the BOUNDS property, though that would make the most sense.

I suppose it's because that the BOUNDS is actually dependent on the HOUSING SIZE - if you change the HOUSING SIZE, the BOUNDS changes as well.

Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


LinkedIn

Blog for (mostly LabVIEW) programmers: Tips And Tricks

0 Kudos
Message 2 of 2
(2,670 Views)