From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Setting text font of a menu bar in CVI ?

Hi all,

is it possible to set the font of a menu bar (LabWindows/CVI 6.0 /
Win2k)? AFAIK, the font for a menu bar is taken from the system
settings. In my application, it looks rather messy if the menu bar and
the fonts of the controls are not the same. Any suggestions ?

Thanks,

Roel Smeets.
0 Kudos
Message 1 of 4
(2,696 Views)
No, the CVI windows will always inherit the menu font from the Windows OS setting.

Best Regards,

Chris Matthews
National Instruments
0 Kudos
Message 2 of 4
(2,696 Views)
Is there a way in CVI (or using the SDK) to obtain the current menu font
used by Windows, so I can adapt the font settings of my other controls ?

Thanks,

Roel Smeets.

Chris Matthews wrote in message
news:506500000005000000B80B0100-1042324653000@exchange.ni.com...
> No, the CVI windows will always inherit the menu font from the Windows
> OS setting.
>
> Best Regards,
>
> Chris Matthews
> National Instruments
0 Kudos
Message 3 of 4
(2,696 Views)
Sure, just set the fonts of your other controls to VAL_MENU_META_FONT.

Luis Gomes
NI
0 Kudos
Message 4 of 4
(2,696 Views)