LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Change some dialogue text style and color

Solved!
Go to solution

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 Kudos
Message 1 of 6
(2,256 Views)

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 Kudos
Message 2 of 6
(2,251 Views)

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 Kudos
Message 3 of 6
(2,247 Views)
Solution
Accepted by topic author 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 Kudos
Message 4 of 6
(2,237 Views)

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.

 

http://www.ni.com/tutorial/8768/en/

 

Thanks.

0 Kudos
Message 5 of 6
(2,220 Views)

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 Kudos
Message 6 of 6
(2,216 Views)