From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

button with different size text

Solved!
Go to solution
It is possible to have different sized text on one button?  Whenever I highlight one section and change the font size, it changes the whole button.  I am using labview 2009 and a guy at work has the 7.1 version and with that version you can do it.  Any ideas? Thanks
0 Kudos
Message 1 of 13
(4,247 Views)
Solution
Accepted by secr1973

Instead of selecting a part of the text you can copy paste the different sized text and it will work

 

di.JPG

Message 2 of 13
(4,229 Views)
One problem with that solution is that the text area that is over top the button is unclickable. 
0 Kudos
Message 3 of 13
(4,218 Views)
What you are seeing is not endemic to 2009 - the change was done earlier. I know that 8.2 works that way, but I'm not sure if the change was done with 8.2 or 8.0. To be honest, I'm not sure why it was changed.
0 Kudos
Message 4 of 13
(4,212 Views)
Okay, so I guess it is not possible.  It sure doesn't make sense why they would take out functionality with newer versions.
0 Kudos
Message 5 of 13
(4,201 Views)

Ravens Fan wrote:
One problem with that solution is that the text area that is over top the button is unclickable. 

I think you misunderstood.  You copy the text into the text field (so it's actually part of the button).  Not paste the comment over the button. 

 


  Okay, so I guess it is not possible.  It sure doesn't make sense why they would take out functionality with newer versions.


Pretty sure Muks's suggestion is what you are looking for.
Edit: It works in 8.6 anyway
Message Edited by elset191 on 04-02-2010 10:36 AM
--
Tim Elsey
Certified LabVIEW Architect
Message 6 of 13
(4,200 Views)

Yes, you are correct.  It does work.  I created the separate comment, set the font size.  Copied the text out of that comment label and pasted it into the middle of the button's text.

 

I didn't think it would work because I tried something similar where I went in to edit the control and dropped a comment label on top of the button.  So the button would have " this is               text" with "BIG" has a separate comment label dropped in the space.  But the area covered by BIG was not clickable on that button.

 

 It does seem odd that if you were able to select a portion of the button text in older versions and could change the size of just that portion, that it was later taken away.  Especially since you proved that you can have different font sizes within the text if you do the work around you posted.

0 Kudos
Message 7 of 13
(4,192 Views)

secr1973 wrote:
Okay, so I guess it is not possible.  It sure doesn't make sense why they would take out functionality with newer versions.

Never said it was impossible. Muks' suggestion is the only way to do it. You have to copy text of the font style you want and replace the part of the Boolean text that you want. It's a bit counter-intuitive, I would agree.

0 Kudos
Message 8 of 13
(4,191 Views)
Alright, I just tried it and it works if you copy it into the text like you said.  Thanks for your help.
0 Kudos
Message 9 of 13
(4,189 Views)

smercurio_fc wrote:
What you are seeing is not endemic to 2009 - the change was done earlier. I know that 8.2 works that way, but I'm not sure if the change was done with 8.2 or 8.0. To be honest, I'm not sure why it was changed.

I can confirm it for 8.0...

0 Kudos
Message 10 of 13
(4,129 Views)