LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Resize Control with Checkbox at Center

Solved!
Go to solution

I am trying to create a checkbox typedef where a system checkbox is at the center of a resizable rectangle. At the moment I have a Flat Box aligned with the checkbox, but when I resize the control, the checkbox remains in the same place. How do I get the checkbox to automatically align with the center when the control is resized? Thanks for the help!

 

Capture.PNG

0 Kudos
Message 1 of 6
(3,559 Views)

You can do it with an XControl

"If you weren't supposed to push it, it wouldn't be a button."
Message 2 of 6
(3,512 Views)

Try putting 'enableSecretPopups=True' in the LabVIEW configuration INI file.   This shows many menu options on individual control parts to set the resize behavior.   No documentation exists so it's trial and error.

 

enableSecretPopups=True.png

0 Kudos
Message 3 of 6
(3,497 Views)

Is there a way to create an array of these XControl Checkboxes?

0 Kudos
Message 4 of 6
(3,461 Views)
Solution
Accepted by topic author nrpratt

I know it's probably not the right way to do it, but I created an array of clusters, in which I set up a couple flat booleans as a left and top buffer, and then the checkbox. Using a simple VI, it calculates the size needed of both of the buffers to center the checkbox in the space.

 

So the final result of an element of the array looks like this (with everything except the checkbox transparent).

Capture.PNG

0 Kudos
Message 6 of 6
(3,441 Views)