05-22-2017 11:23 AM
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?
Solved! Go to Solution.
05-22-2017 12:16 PM - edited 05-22-2017 12:16 PM
Size of the elements or the number of elements ?
To change the number of elements shown, there is a property node for that.
05-22-2017 12:33 PM
@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
05-22-2017 12:37 PM
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.
05-22-2017 02:46 PM
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)
05-22-2017 03:02 PM
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.
05-22-2017 03:15 PM
05-22-2017 03:18 PM
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.
05-22-2017 03:37 PM