//** --------------=Event handlers=------------------ **// void mmTransDialog::OnDateChanged(wxDateEvent& event) { //get weekday name wxDateTime date = dpc_->GetValue(); if (event.GetDate().IsValid()) { itemStaticTextWeek_->SetLabelText(wxGetTranslation(date.GetWeekDayName(date.GetWeekDay()))); m_trx_data.TRANSDATE = date.FormatISODate(); } }
void dlgRole::OnChangeDate(wxDateEvent &ev) { bool timEn = ev.GetDate().IsValid(); timValidUntil->Enable(timEn); if (!timEn) timValidUntil->SetTime(wxDefaultDateTime); else timValidUntil->SetTime(wxDateTime::Today()); CheckChange(); }
void mmCustomData::OnTimeChanged(wxDateEvent& event) { auto data = event.GetDate(); SetWidgetChanged(event.GetId(), data.FormatISOTime()); }
void bmx_wxdateevent_setdate(wxDateEvent & event, MaxDateTime * date) { event.SetDate(date->DateTime()); }