#include "wx/numdlg.h"
#include "wx/fontdlg.h"
-#ifndef __WXMSW__
+#ifndef wxHAS_IMAGES_IN_RESOURCES
#include "../sample.xpm"
#endif
StatusBar_SetPaneStyleNormal,
StatusBar_SetPaneStyleFlat,
StatusBar_SetPaneStyleRaised,
+ StatusBar_SetPaneStyleSunken,
StatusBar_SetStyleSizeGrip,
StatusBar_SetStyleEllipsizeStart,
EVT_MENU(StatusBar_SetPaneStyleNormal, MyFrame::OnSetPaneStyle)
EVT_MENU(StatusBar_SetPaneStyleFlat, MyFrame::OnSetPaneStyle)
EVT_MENU(StatusBar_SetPaneStyleRaised, MyFrame::OnSetPaneStyle)
+ EVT_MENU(StatusBar_SetPaneStyleSunken, MyFrame::OnSetPaneStyle)
EVT_MENU(StatusBar_SetStyleSizeGrip, MyFrame::OnSetStyle)
EVT_MENU(StatusBar_SetStyleEllipsizeStart, MyFrame::OnSetStyle)
MyFrame::OnUpdateForDefaultStatusbar)
EVT_UPDATE_UI(StatusBar_Toggle, MyFrame::OnUpdateStatusBarToggle)
EVT_UPDATE_UI_RANGE(StatusBar_SetPaneStyleNormal,
- StatusBar_SetPaneStyleRaised,
+ StatusBar_SetPaneStyleSunken,
MyFrame::OnUpdateSetPaneStyle)
EVT_UPDATE_UI_RANGE(StatusBar_SetStyleSizeGrip, StatusBar_SetStyleShowTips,
MyFrame::OnUpdateSetStyle)
wxT("&Raised"),
wxT("Sets the style of the first field to raised look")
);
+ statbarPaneStyleMenu->AppendCheckItem
+ (
+ StatusBar_SetPaneStyleSunken,
+ wxT("&Sunken"),
+ wxT("Sets the style of the first field to sunken look")
+ );
statbarMenu->Append(StatusBar_SetPaneStyle, wxT("Field style"),
statbarPaneStyleMenu);
case StatusBar_SetPaneStyleRaised:
event.Check(m_statbarPaneStyle == wxSB_RAISED);
break;
+ case StatusBar_SetPaneStyleSunken:
+ event.Check(m_statbarPaneStyle == wxSB_SUNKEN);
+ break;
}
}
case StatusBar_SetPaneStyleRaised:
m_statbarPaneStyle = wxSB_RAISED;
break;
+ case StatusBar_SetPaneStyleSunken:
+ m_statbarPaneStyle = wxSB_SUNKEN;
+ break;
}
ApplyPaneStyle();
return;
#endif
- // TEMPORARY HACK: TODO find a more general solution
-#ifdef wxStatusBarGeneric
- wxStatusBar::OnSize(event);
-#endif
-
wxRect rect;
if (!GetFieldRect(Field_Checkbox, rect))
{