NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Set larger font and fixed size of pop up message

I'm using TestStand 4.0. I there a way to set a larger font? MsgFontData.Size in the property browser is set to zero (default) any other setting I get a smaller font. How do I set the message box to a fixed size so that all my pop-up are sized the same. I want to use TestStand settings not windows API if possible. richjoh
0 Kudos
Message 1 of 12
(5,908 Views)

OK, I see how to set the Font size, a "Aa" icon button in the Text and Button tab. Now is there a way to set the pop-up message size to a fixed size??

richjoh

0 Kudos
Message 2 of 12
(5,888 Views)

richjoh -
If you are asking to set the size of the prompt window independent of the message size, the answer is no. The code for the step automatically trys to figures out the minimum space needed to display the required controls. In the past I have padded the title with spaces to ensure that the message is larger than it wanted to size it automatically.

Scott Richardson
https://testeract.com
0 Kudos
Message 3 of 12
(5,884 Views)
You can also set the font size using MsgFontData.Size.  I would guess that you just did not choose a large enough number to increase the font size.  The default value of 0 chooses a default font size of 8, so unless you chose a number larger than 8, it would seem that the font is decreasing in size. 

NickB
National Instruments
Applications Engineer
0 Kudos
Message 4 of 12
(5,868 Views)
Nickb,
your correct I didn't choose a large enough font size for the MsgFontData.Size. I noticed if you set then change this back to zero, then the "Aa" icon gives an error --->  'Value of zero is not valid for eSize'...
 
not a big deal at all
0 Kudos
Message 5 of 12
(5,847 Views)

Sorry to revive an old thread, but where can I find MsgFontData.Size ?

0 Kudos
Message 6 of 12
(5,225 Views)

It is a step property so:

 

Step.MsgFontData.Size = ?

 

Hope this helps,

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
Message 7 of 12
(5,220 Views)

Sorry if you want to look at it during edit time then click on the Message Popup step of interest.  Under the Properties tab choose Property Browser.  In the right pane you should see a variable called MsgFontData.  Expand it and you will see the Size subproperty.

 

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
Message 8 of 12
(5,219 Views)

Thanks I found it.

 

Is there a way to set a global font size?  I need to change approx 200 popup merssages and was hoping the was a single place which would affect all popup messages.

0 Kudos
Message 9 of 12
(5,216 Views)

Unfortunately I am not aware of a global solution. The best would be changing the step type definition.  However, that is not possible since this is a native step.

 

You can select all the steps at once and change the setting.

 

One thing that I've done in the past is make file global of type NI_MsgBoxFontData.  Then I made a Message Popup template step with a pre-expression which said something like: Step.MsgFontData = FileGlobals.MsgFontData.  Then I could do "skins".  I also did the same type of thing for the ButtonFontData.  Then whenever I needed a Message Popup step I'd grab it from my templates instead of my palette.  I also turned off recording.

 

Anyhow, since they already exist you will have to go through the pain.  Sorry.

 

Hope this helps,

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
Message 10 of 12
(5,203 Views)