LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Want the same size of the array-buttons

Hello 🙂

We have an array with strings and one array with boolean elements. Those should be side by side but the problem is that the boolean array is much smaller than the string array. We want every element in the arrays be the same size and height so that for example element number 10 end up side by side. We have tried to change the height of the boolean array elements but there is always some different between the to arrays... any tip? Thank you
0 Kudos
Message 1 of 4
(3,333 Views)
Hi Ex-jobb

When sizing the boolean indicator you will notice a small display showing two figures on a yellow background similar to -> (19,19) usually in the centre of the menu bar. These show the width & height of the element you are resizing and allows you to accurately set the size. I found that by setting height and width of a boolean LED to 19,19 the string and boolean indicators are perfectly aligned. See attached vi.
Hope this helps. Good luck.

Neil
0 Kudos
Message 2 of 4
(3,324 Views)
Oooh, this is a tough cookie.
There is the bounds property, but unfortunately it is read-only. What I suggest is this: Align both arrays to bottom, and make them display the same number of elements (2-4 is good). Now, start making the bottom boolean bigger one or two pixels at a time (drag it upward, so the array grows that way). Eventually, you should get it the right size. But now you have a problem - this setup is font-dependant. If you run this somewhere else it can be easily changed, so it's dangerous. A safe solution would be to use a cluster array. Make a cluster from a string and a boolean and drag this cluster into an empty array. You'll have to change your code, but they'll always be aligned.

___________________
Try to take over the world!
Message 3 of 4
(3,322 Views)
The way to change the size of booleans in an array:-
Select any one boolean! Click with the pointer tool until you select,( see the "ants running round") one element of the array. Then you can click on the resize objects in the toolbar.
Yours Sincerely
John
0 Kudos
Message 4 of 4
(3,309 Views)