Professional UI Solutions
Site Map   /  Register


Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » Re: How to increase Font Size of the Tabbed Control. Collapse All
Subject Author Date
Amol Shinde Jul 17, 2007 - 4:33 AM

I have created 4 dialog boxes and want to add them in Tabs using CExtTabPageContainerOneNoteWnd class. I have done some R n D using g_PaintManager.m_FontControl->CreateFontIndirect(&myfont). But it doesn’t increses the Tab font. Can you will please tell me how to increase the Tab Font so that I will get bigger tab size.
Also currently i have .Net Style tabs can you will tell me how i can achieve XP Style tabs.
Currently i am using Evaluation version. If these 2 thinks works successfully i will go and buy the software.
Please can you will reply me urgently.

Thanks and Regards

Technical Support Jul 17, 2007 - 7:49 AM

1) You can assign a custom font by using the SetFont() method. Another way is to use the OnQueryFont() virtual method in the CExtTabPageContainerWnd class. You can override this method so that it returns a HFONT handle.

2) You can simply apply the native UI theme so that all the controls and windows can be drawn consistently with the currently applied desktop theme on any Windows OS:

g_PaintManager.InstallPaintManager( RUNTIME_CLASS( CExtPaintManagerNativeXP ) );
You can invoke this line of code during application startup.