LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to fix the with of buttons when boolean text is too wide

I need to change the boolean text of boolean. But the size of buttons is increasing when the text is too wide.

I have created a SubVI to avoid that. But it is taking some time to compute...

If anyone has a better idea...

The reason why I need that is becase I don't have control of what the user will put in the button.

See the example attached.
0 Kudos
Message 1 of 5
(3,000 Views)
Right-Click on the Booleans and select "release text". This will decouple the size of the boolean from the size of the text.
0 Kudos
Message 2 of 5
(3,000 Views)
Thanks for the advise. But it is worst like that. Now the text apear all over the button...

I want the text to be inside the button. But in the same time I want the button to keep it's size...
0 Kudos
Message 3 of 5
(3,000 Views)
Instead of place the text inside the button, maybe you could keep the button text constant and assign the user text to the button's tip strip? The only other way I see to keep the button size and allow user assinged text is to try smaller and smaller font sizes until the text fits but at some point you're liable to end up with text that's not readable and you're back to restricting the text that's visible.
0 Kudos
Message 4 of 5
(3,000 Views)
I take note of the Tip strip. reducing the text size is not a good idea...

Thanks to both of you. I think I will troncate the text and show fill the Tip strip

Nitrof
0 Kudos
Message 5 of 5
(3,000 Views)