LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

ArrElem.Bounds changes for typed control

I have a need for an array of checkboxes with a precisely customized element spacing (the default element gaps are too small) so I created a strict type def customized checkbox with enlarged bounds called ZVMS Enlarged Checkbox.ctl. (The classic checkbox appears unchanged but the surrounding boundary is enlarged.) Then I created a strict type def custom 1D array called ZVMS Checkbox Array with elements of type ZVMS Enlarged Checkbox. When I place a ZVMS Checkbox Array control in a vi, it initially has the proper appearance and the ArrElem.Bounds property returns the custom bounds of width=17, and height=21. But after closing and reopening the vi, the ArrElem.Bounds are reset to default classic checkbox bounds of width=13 and height=13 and the appearance matches (at least it does after the window is refreshed).

If I reopen the ZVMS Checkbox Array.ctl type def and resize the array twice to enable Apply Changes, I can restore the proper element bounds in the instantiated control in my vi but only temporarily, i.e. until it is reopened again after being resaved.

Since the ArrElem.Bounds property is not even a writeable property, I can't even fix this problem programatically.

Is there a procedure for maintaining the bounds of a custom array element in a type def control?

Thanks!

Larry
0 Kudos
Message 1 of 3
(2,625 Views)
Have a look at this solution from Altenbach.
Hope this helps.
Message 2 of 3
(2,615 Views)
Importing pictures onto a boolean button is a perfectly good solution for me! In fact, my objective was even the same: to align the 1D boolean array of checkboxes with a plot legend.

Thank you!
0 Kudos
Message 3 of 3
(2,606 Views)