The standard CVI popups use one of the built-in fonts, "NIMessageBoxMetaFont" (defined as VAL_MESSAGE_BOX_META_FONT in userint.h). There is no attribute to change this.
However, there is a way to override the underlying font that "NIMessageBoxMetaFont" resolves to. By default, it resolves to a system font that was ultimately set by the end user in the Display Properties, or somesuch. But you can override that association through the system registry, and you can do it in a way that only affects CVI programs. There are three registry values you can set:
MessageBoxFontName
MessageBoxFontSize
MessageBoxFontBold
The path of the registry key where you want to create these values is the following:
HKEY_LOCAL_MACHINE\SOFTWARE\National Instruments\CVI Run-Time En
gine\cvirte
You don't need to create all three. CVI will use whichever ones you put in there and use the defaults for the remainder. You must create them as string values.
Now, the thing to remember is that if you just open up the registry editor and create these values there, all CVI programs will use this font. If you want to turn it on and off programmatically you'll have to switch these keys in and out dynamically. This means you'll have to write a program to create the registry values yourself. (The Programmer's Toolbox library has a set of functions for this which should make it relatively easy).
If you do decide to modify the registry programmatically, you need to keep in mind that it won't affect the program in which you modify it. So you'd have to have two CVI programs that run sequentially (assuming you then remove the registry changes in your second program).
I know it's a bit complicated, but it's a possibility, in case you really need to do this.
Luis
NI