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 » Status bar font Collapse All
Subject Author Date
Offer Har Nov 27, 2006 - 5:50 PM

I would like to write my own control in the status bar.
How do i get the status-bar font? I see that between skins it’s a different font.
Thanks.

Technical Support Nov 28, 2006 - 11:19 AM

We recommend you use CExtPaintManager->m_FontNormal. Please note that you should not set this font using CWnd::SetFont() method because it is recreated each time the paint manager or system settings change.

Offer Har Nov 28, 2006 - 1:00 PM

So how can I do it without using SetFont?

Technical Support Nov 29, 2006 - 12:31 PM

If you are going to code a custom control, you don’t have to assign the font to the window. You can simply use the font handle we suggested (e.g., for outputting some text).

Offer Har Nov 29, 2006 - 12:35 PM

It’s not a custom control, it’s a CExtLabel derived class.

Technical Support Nov 30, 2006 - 11:20 AM

Why don’t you simply redraw the status pane by overriding of the CExtStatusControlBar::OnPaintPane() and set the needed pane width using the CExtStatusControlBar::SetPaneWidth() method? We believe that in many cases a handleless UI solution is preferable in comparison with HWND-based windows.

Offer Har Dec 1, 2006 - 5:30 AM

OK.
I dropped this try.
Will just use plain text.