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

Change some dialogue text style and color

已解决!
转到解答

I think the answer is no, but thought I would ask anyway. Is it possible to change some of the style and or color of some of the text in a dialogue box?

 

Example, one button dialogue box, letting user know "Test complete, UUT has PASSED calibration and verification." all the text normal except "PASSED" maybe bold and green, where if it had FAILED it could be red?

0 项奖励
1 条消息(共 6 条)
3,419 次查看

Anything is possible with the right implementation!

 

For a regular text comment box on the front panel, you can edit each character as you describe. Different colors, fonts, sizes, anything. Then, the only thing you have to figure out is how to make the text dynamic for the pass/fail criteria. My suggestion to that would be to make a tab structure with two pages, one page containing the pass message and the other containing the fail message. Then your UI initialization would include taking some pass/fail boolean/criteria and deciding which page to display.

 

Hint, you can make the color of a tab structure transparent to make it "invisible".

Redhawk
Test Engineer at Moog Inc.

Saying "Thanks that fixed it" or "Thanks that answers my question" and not giving a Kudo or Marked Solution, is like telling your waiter they did a great job and not leaving a tip. Please, tip your waiters.

0 项奖励
2 条消息(共 6 条)
3,414 次查看

I know I can change front panel fonts, I'm talking about dialogue boxes... with buttons

 

TheWolfmansBrother_0-1595515327584.png

I was hoping that just by passing the font formatted the way I wanted the dialogue box would take and pass the font in the same styles as what I have in the block diagram.

 

0 项奖励
3 条消息(共 6 条)
3,410 次查看
解答
已被主题作者 TheWolfmansBrother 接受

If you want that extra functionality, the dialog box primitives and Display Msg Express VI aren't going to do it. You're gonna have to take the 10-15 minutes to make your own dialog box VI from scratch (or drop a Display Msg Express VI and open front panel to start from there).

Redhawk
Test Engineer at Moog Inc.

Saying "Thanks that fixed it" or "Thanks that answers my question" and not giving a Kudo or Marked Solution, is like telling your waiter they did a great job and not leaving a tip. Please, tip your waiters.

0 项奖励
4 条消息(共 6 条)
3,400 次查看

It hadn't occurred to me that I could make a subvi as a custom dialogue box, Ill give it a shot. Did a quick search and found this on making custom dialogue boxes.

 

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000x2BiCAI&l=en-US

 

Thanks.

0 项奖励
5 条消息(共 6 条)
3,383 次查看

Whew, that tutorial looks like it was made in the stone ages. I've had to make several custom dialog boxes lately. It's worth saying again, whenever you want a dialog box or user input box with some extra functionality, you can drop the Display Msg Express VI or Prompt User for Input Express VI, configure it how you want, then right click and Open Front Panel to make a new VI with the preconfigured Express VI as the starting point.

Redhawk
Test Engineer at Moog Inc.

Saying "Thanks that fixed it" or "Thanks that answers my question" and not giving a Kudo or Marked Solution, is like telling your waiter they did a great job and not leaving a tip. Please, tip your waiters.

0 项奖励
6 条消息(共 6 条)
3,379 次查看