added API, docs and Win32 implementation of wxDatePickerCtrl
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31366 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -42,6 +42,7 @@
|
||||
|
||||
#include "wx/spinctrl.h"
|
||||
|
||||
#define _WX_DEFINE_DATE_EVENTS_
|
||||
#include "wx/calctrl.h"
|
||||
|
||||
#define DEBUG_PAINT 0
|
||||
@@ -162,7 +163,7 @@ wxCONSTRUCTOR_6( wxCalendarCtrl , wxWindow* , Parent , wxWindowID , Id , wxDateT
|
||||
#else
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxCalendarCtrl, wxControl)
|
||||
#endif
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxCalendarEvent, wxCommandEvent)
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxCalendarEvent, wxDateEvent)
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// events
|
||||
@@ -1820,22 +1821,5 @@ wxCalendarCtrl::GetClassDefaultAttributes(wxWindowVariant variant)
|
||||
return wxListBox::GetClassDefaultAttributes(variant);
|
||||
}
|
||||
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// wxCalendarEvent
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
void wxCalendarEvent::Init()
|
||||
{
|
||||
m_wday = wxDateTime::Inv_WeekDay;
|
||||
}
|
||||
|
||||
wxCalendarEvent::wxCalendarEvent(wxCalendarCtrl *cal, wxEventType type)
|
||||
: wxCommandEvent(type, cal->GetId())
|
||||
{
|
||||
m_date = cal->GetDate();
|
||||
SetEventObject(cal);
|
||||
}
|
||||
|
||||
#endif // wxUSE_CALENDARCTRL
|
||||
|
||||
|
Reference in New Issue
Block a user