Hi, i have a wxDatePickerCtrl in a panel, and im handling wxEVT_DATECHANGED, the problem is, whenever the date is changed in the control, i get the event TWICE, so i have to do something like...
Code: Select all
void PanelAgenda::OnPagActualDateChanged( wxDateEvent& event )
{
static bool done=false;
if(done)
{
// 2nd call, dont handle!!
done=false;
return;
}
done=true;
// do something here...
}
this hack solves the problem, but im worried that the problem wont allways occur, and then the user will have to change the date twice for something to happen.
Has anyone else experienced this problem?
Thanks!
Hier Kommt die Sonne...