LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Changing the fontsize, bold etc in the GenericMessagePopup function.

How can I change the fontsize, bold etc in the GenericMessagePopup function in labwinsows 5.0.1?
I have tried SetFontPopupDefaults but this does not seem to change anything in GenericMessagePopup.
0 Kudos
Message 1 of 4
(4,575 Views)
Hi,
the SetFontPopupDefaults does exactly what it says, i.e. sets the defaults for the fontselectpopup, and not the fonts for popup boxes.

If you want to have the best programmatic control of the fonts for pop-ups, it would be best to create custom panels in which you set the font style of the individual controls.

There are other options and the following link should give you the full description of the options for how to change the default fonts used on a popup :

http://digital.ni.com/public.nsf/websearch/86256F0E001DA9FC862564900073B442?OpenDocument

Hope that helps

Thanks

Sacha Emery
National Instruments (UK)
// it takes almost no time to rate an answer Smiley Wink
Message 2 of 4
(4,561 Views)
Thanks Sacha,
I was hoping I didn't have to go down the Panels route, but it looks like I will have to now. Thanks for replying.

Regards

WGV
0 Kudos
Message 3 of 4
(4,559 Views)
If you want to change the message box font for all message boxes not explicitly defined you may want to just change your display properties. For example, in XP right-click on desktop, select properties, click on “Appearance” tab, click “Advanced”, select “Message box” from pull-down menu in Item field, then select font, size, etc. and apply.

Note that this will change the default font for all Windows Message boxes on system, but that may be what you want.
0 Kudos
Message 4 of 4
(4,537 Views)