git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42047
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#include "wx/dcclient.h"
#include "wx/timer.h"
#include "wx/settings.h"
#include "wx/dcclient.h"
#include "wx/timer.h"
#include "wx/settings.h"
#endif
#include "wx/stockitem.h"
#endif
#include "wx/stockitem.h"
// wxDataViewDateRenderer
// ---------------------------------------------------------
// wxDataViewDateRenderer
// ---------------------------------------------------------
+#if wxUSE_CALENDARCTRL
+
class wxDataViewDateRendererPopupTransient: public wxPopupTransientWindow
{
public:
class wxDataViewDateRendererPopupTransient: public wxPopupTransientWindow
{
public:
+#endif // wxUSE_CALENDARCTRL
+
IMPLEMENT_ABSTRACT_CLASS(wxDataViewDateRenderer, wxDataViewCustomRenderer)
wxDataViewDateRenderer::wxDataViewDateRenderer( const wxString &varianttype,
IMPLEMENT_ABSTRACT_CLASS(wxDataViewDateRenderer, wxDataViewCustomRenderer)
wxDataViewDateRenderer::wxDataViewDateRenderer( const wxString &varianttype,
model->GetValue( variant, col, row );
wxDateTime value = variant.GetDateTime();
model->GetValue( variant, col, row );
wxDateTime value = variant.GetDateTime();
wxDataViewDateRendererPopupTransient *popup = new wxDataViewDateRendererPopupTransient(
GetOwner()->GetOwner()->GetParent(), &value, model, col, row );
wxPoint pos = wxGetMousePosition();
popup->Move( pos );
popup->Layout();
popup->Popup( popup->m_cal );
wxDataViewDateRendererPopupTransient *popup = new wxDataViewDateRendererPopupTransient(
GetOwner()->GetOwner()->GetParent(), &value, model, col, row );
wxPoint pos = wxGetMousePosition();
popup->Move( pos );
popup->Layout();
popup->Popup( popup->m_cal );
+#else
+ wxMessageBox(value.Format());
+#endif
}
bool wxDataViewColumn::GetSortable()
}
bool wxDataViewColumn::GetSortable()