Professional UI Solutions
Site Map   /  Register
 
 

Forum

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 Tech Support » toolbar button font Collapse All
Subject Author Date
Stephan Finkler Jul 21, 2005 - 2:30 AM

Hi,

is it possible to change the font of toolbar button?

Technical Support Jul 21, 2005 - 6:55 AM

The most Prof-UIS classes use the g_PaintManager->m_FontNormal font stored in the global paint manager component. This allows you to easily change the entire GUI font. This is demonstrated in the FunnyBars sample application. To change the font of a particular toolbar button, create a new CExtBarButton-derived class and override both CExtBarButton::CalculateLayout() and CExtBarButton::Paint() virtual methods. In the FunnyBars application, the CFunnyToolButton class implements mouse hover effects and paints underlined colored text. We need more details on what you need to do so that we can help you.