LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Change size of an object in an array

Solved!
Go to solution

I have a cluster of elements in an array that is set to scale with window size.

 

When I'm running my vi, I only need 3 < n < 15 elements visible at any given time. Is there a way I can change the size of the elements in an array so that they grow in size to adjust with the window?

 

 

0 Kudos
Message 1 of 9
(3,689 Views)

Size of the elements or the number of elements ?

 

To change the number of elements shown, there is a property node for that.

 

Message 2 of 9
(3,664 Views)

@RavensFan wrote:

Size of the elements or the number of elements ?

 

To change the number of elements shown, there is a property node for that.

 


I'm looking to change the size of the elements. If there were n=12 each element would be 100x100 pixels but if there are n=6, each element becomes 200 x 200 

0 Kudos
Message 3 of 9
(3,652 Views)

You need to post a VI that shows what your elements are.

 

Some elements such as numerics can't have their height changed.

 

For things that can, you can use property nodes of those elements to set the height.

0 Kudos
Message 4 of 9
(3,649 Views)

Ahh


@RavensFan wrote:

You need to post a VI that shows what your elements are.

 

Some elements such as numerics can't have their height changed.

 

For things that can, you can use property nodes of those elements to set the height.


I'm looking to scale this control (or Something that has a similar amount of data)

 

Capture.PNG

0 Kudos
Message 5 of 9
(3,627 Views)
Solution
Accepted by topic author ATE-EGNE

Try this example.

 

For some reason your control is part of a class library.  I had to break that to be able to work with it.

 

 

Message 6 of 9
(3,619 Views)

Thnaks! That's what I'm looking for (I was messing around in the bounds area by mistake)

0 Kudos
Message 7 of 9
(3,612 Views)

That would make sense, but those are read only properties.

 

What I posted seemed to work, even with the controls inside a sub-cluster.  But I think it is because the cluster containers are set to auto-size.

0 Kudos
Message 8 of 9
(3,608 Views)

Yes it does work, There's going to be a bit of data hiding involved before it gets to my top-level vi, but I can take care of that. Thanks for your help.

0 Kudos
Message 9 of 9
(3,602 Views)