07-23-2020 09:24 AM
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?
Solved! Go to Solution.
07-23-2020 09:34 AM
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".
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.
07-23-2020 09:43 AM - edited 07-23-2020 09:45 AM
I know I can change front panel fonts, I'm talking about dialogue boxes... with buttons
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.
07-23-2020 09:52 AM - edited 07-23-2020 09:53 AM
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).
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.
07-23-2020 10:05 AM
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.
07-23-2020 10:13 AM
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.
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.