LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Resize array of cluster

Hi!

How could I resize programmatically the size of array of cluster to adjust the change in front panel size or change of monitor size.

 

I would like to control/indicator within the cluster also change their size to fit the new front panel size.

 

I am attaching an example of the cluster /front panel I would like to use.

 

Thanks you for your help here!

 

0 Kudos
Message 1 of 2
(2,645 Views)

You will want to use property nodes for all of this. I've done something in the past where I resized my array, pulled its new total dimensions, and then resized the panel to match (with a little buffer). It sounds like you're going the other direction, but it's the same idea.

 

For the arrays, you can use the Number of Columns property (or Rows if you want) to resize the number of elements shown. You'll have to do a little math with the cluster size to figure out how many elements can fit per known window size.

You can get the panel size using This VI ref and then FP.WinBounds.

Cheers


--------,       Unofficial Forum Rules and Guidelines                                           ,--------

          '---   >The shortest distance between two nodes is a straight wire>   ---'


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