#if wxUSE_STATUSBAR
#ifndef WX_PRECOMP
+ #include "wx/settings.h"
+ #include "wx/dcclient.h"
#endif
#include "wx/statusbr.h"
wxRect wxStatusBarUniv::GetTotalFieldRect(wxCoord *borderBetweenFields)
{
- // determine the space we have for the fields
- wxSize sizeBorders = m_renderer->GetStatusBarBorders(borderBetweenFields);
-
wxRect rect = GetClientRect();
// no, don't do this - the borders are meant to be inside this rect
+ // wxSize sizeBorders =
+ m_renderer->GetStatusBarBorders(borderBetweenFields);
//rect.Deflate(sizeBorders.x, sizeBorders.y);
// recalc the field widths if needed
// prepare the DC
wxDC& dc = renderer->GetDC();
- dc.SetFont(wxSystemSettings::GetSystemFont(wxSYS_DEFAULT_GUI_FONT));
+ dc.SetFont(wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT));
// do draw the fields
int flags = IsEnabled() ? 0 : wxCONTROL_DISABLED;
wxCoord wxStatusBarUniv::GetHeight() const
{
wxClientDC dc(wxConstCast(this, wxStatusBarUniv));
- dc.SetFont(wxSystemSettings::GetSystemFont(wxSYS_DEFAULT_GUI_FONT));
+ dc.SetFont(wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT));
return dc.GetCharHeight() + 2*GetBorderY();
}