as the native control doesn't check the min max values, we do it ourselves
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74183 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -78,7 +78,12 @@ public:
|
|||||||
|
|
||||||
virtual void SetDateTime(const wxDateTime& dt)
|
virtual void SetDateTime(const wxDateTime& dt)
|
||||||
{
|
{
|
||||||
[View() setDateValue: NSDateFromWX(dt)];
|
wxDateTime dtFrom, dtTo;
|
||||||
|
|
||||||
|
if ( GetDateRange(&dtFrom,&dtTo) == false ||
|
||||||
|
( (!dtFrom.IsValid() || dtFrom <= dt) &&
|
||||||
|
(!dtTo.IsValid() || dt <= dtTo ) ) )
|
||||||
|
[View() setDateValue: NSDateFromWX(dt)];
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual wxDateTime GetDateTime() const
|
virtual wxDateTime GetDateTime() const
|
||||||
|
Reference in New Issue
Block a user