const wxDateTime& date = wxDefaultDateTime,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
- long style = wxCAL_SHOW_HOLIDAYS,
+ long style = wxCAL_SHOW_HOLIDAYS | wxWANTS_CHARS,
const wxString& name = wxCalendarNameStr)
- : wxControl(parent, id, pos, size,
- style | wxWANTS_CHARS, wxDefaultValidator, name)
{
Init();
const wxDateTime& date = wxDefaultDateTime,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
- long style = wxCAL_SHOW_HOLIDAYS,
+ long style = wxCAL_SHOW_HOLIDAYS | wxWANTS_CHARS,
const wxString& name = wxCalendarNameStr);
virtual ~wxCalendarCtrl();
m_colHeaderBg = *wxLIGHT_GREY;
}
-bool wxCalendarCtrl::Create(wxWindow * WXUNUSED(parent),
- wxWindowID WXUNUSED(id),
+bool wxCalendarCtrl::Create(wxWindow *parent,
+ wxWindowID id,
const wxDateTime& date,
- const wxPoint& WXUNUSED(pos),
+ const wxPoint& pos,
const wxSize& size,
long style,
- const wxString& WXUNUSED(name))
+ const wxString& name)
{
+ if ( !wxControl::Create(parent, id, pos, size,
+ style | wxWANTS_CHARS, wxDefaultValidator, name) )
+ {
+ return FALSE;
+ }
+
// needed to get the arrow keys normally used for the dialog navigation
SetWindowStyle(style | wxWANTS_CHARS);