取消
显示结果 
搜索替代 
您的意思是: 

button with different size text

已解决!
转到解答
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 项奖励
1 条消息(共 13 条)
5,948 次查看
解答
已被主题作者 secr1973 接受

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

 

di.JPG

2 条消息(共 13 条)
5,930 次查看
One problem with that solution is that the text area that is over top the button is unclickable. 
0 项奖励
3 条消息(共 13 条)
5,919 次查看
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 项奖励
4 条消息(共 13 条)
5,913 次查看
Okay, so I guess it is not possible.  It sure doesn't make sense why they would take out functionality with newer versions.
0 项奖励
5 条消息(共 13 条)
5,902 次查看

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
6 条消息(共 13 条)
5,901 次查看

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 项奖励
7 条消息(共 13 条)
5,893 次查看

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 项奖励
8 条消息(共 13 条)
5,892 次查看
Alright, I just tried it and it works if you copy it into the text like you said.  Thanks for your help.
0 项奖励
9 条消息(共 13 条)
5,890 次查看

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 项奖励
10 条消息(共 13 条)
5,830 次查看