LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Changing the text size in a dialog box

I am wondering if there is a way to increase the size fo the text that is displayed when I use the "Display Message To User" vi.
0 Kudos
Message 1 of 8
(7,101 Views)
Not easily. The Display Message to User express VI uses the one button dialog box and two button dialog box VIs to actually display the message. These cannot have thier text size set. It uses the system fonts. You can increase the size of the system fonts in order to affect these.

That is not what I would do. Instead, I would create a new vi with the message that I wanted and the text size that I was after. I would set its properties -> Windows Appearance -> to dialog. On the diagram, have a while loop that pools for an OK button or have an event structure looking for an OK button. This will make it stay open until the user presses the button. I have attached an example.

If you open it up an look inside, it is how the Prompt User for Input exp
ress VI works.

I hope that this helps,
Bob Young
Message 2 of 8
(7,099 Views)

Hello,

I find several questions about the text size and all of them are older.  Has anything changed with 8.2.2?

Can you change the size of text that is displayed in the "Display Message To User".vi yet or is it still a matter of changing all the dialog text?

Thank you,

Ben

0 Kudos
Message 3 of 8
(6,815 Views)
Hi Ben,

No it is still not possible to change the size of the text in the Display Message to User express VI. This VI still uses the two button and one button dialogs.
Nick R
NI
0 Kudos
Message 4 of 8
(6,796 Views)

this idea is really usefull bob....

thanks for this vi.

 

i can also use a cluster with text and ok button, if i want the function in the same vi right?

Kudos always welcome for helpful posts 🙂
0 Kudos
Message 5 of 8
(6,523 Views)

The Express VI can be converted to a regular VI by right-clicking on it and selecting "Open Front Panel". You can then save it as a new VI in your hierarchy and change it to suit your needs.

 

That said, it does not seem to me to be a good idea to have an OK button inside a cluster. Why would you do this?

Message 6 of 8
(6,516 Views)

hi smericurio_fc

 

the cluster i used was in one case of stacked sequence.i had 'save' and 'cancel' buttons in the cluster.

 

i wanted some other controls (in the next case of stacked sequence) to be refreshed. if i use the dialog vi, i cant refresh other controls of the 'calling vi'.

hope you got it.

 

and i didnt need the dialog type window there. i was just watching the save or cancel buttons of the clustor from the vi itself.

 

please clear this doubt and giv ur suggestions.

 

thanks in advance

 

Renn

 

Kudos always welcome for helpful posts 🙂
0 Kudos
Message 7 of 8
(6,485 Views)
Still doesn't make sense, as I don't quite understand what you're doing. Can you upload your VI?
0 Kudos
Message 8 of 8
(6,473 Views)