LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I change the font size on a tabbed panel?

Hi there,

I have created a tabbed panel using EasyTab. The font size on the tabbed panel is small. I tried to change the font size of the child panel, but no changes to the tabbed panel.

Thanks,
Yu-Loong
0 Kudos
Message 1 of 3
(3,278 Views)
You can change the font of the tab labels by using the EasyTab_SetAttribute function and setting the Tab Label Metafont. You will need to create a meta font with CreateMetaFont first that specifies point size, bold, etc. For example, open the \samples\userint\custctrl\easytab\simpdemo.prj and add the following two lines after the EasyTab_LoadPanels call in the main function:

CreateMetaFont ("tabfont", "Arial", 14, 1, 0, 0, 0);
EasyTab_SetAttribute (panel, tabCtrl, ATTR_EASY_TAB_META_FONT,
"tabfont");

This will give you a font of Arial 14 Bold.

Best Regards,

Chris Matthews
Measurement Studio Support Manager
Message 2 of 3
(3,278 Views)
Thanks.
0 Kudos
Message 3 of 3
(3,278 Views)