Send the calendar and date changed events to the datepicker ctrl first

(not its parent) so they can be caught by dynamic event handlers
connected directly to the picker.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46530 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn 2007-06-18 19:34:56 +00:00
parent ad877f92c6
commit d1b736b796

View File

@ -199,10 +199,10 @@ public:
cev.SetEventObject(datePicker);
cev.SetId(datePicker->GetId());
cev.SetDate(dt);
GetParent()->GetEventHandler()->ProcessEvent(cev);
datePicker->GetEventHandler()->ProcessEvent(cev);
wxDateEvent event(datePicker, dt, wxEVT_DATE_CHANGED);
datePicker->GetParent()->GetEventHandler()->ProcessEvent(event);
datePicker->GetEventHandler()->ProcessEvent(event);
}
private: