+ m_panel->HighlightSpecial(GetMenuBar()->IsChecked(event.GetId()));
+}
+
+void MyFrame::OnCalAllowMonth(wxCommandEvent& event)
+{
+ bool allow = GetMenuBar()->IsChecked(event.GetId());
+
+ m_panel->GetCal()->EnableMonthChange(allow);
+}
+
+void MyFrame::OnCalAllowYear(wxCommandEvent& event)
+{
+ bool allow = GetMenuBar()->IsChecked(event.GetId());
+
+ m_panel->GetCal()->EnableYearChange(allow);
+}
+
+void MyFrame::OnCalSeqMonth(wxCommandEvent& event)
+{
+ bool allow = GetMenuBar()->IsChecked(event.GetId());
+
+ m_panel->ToggleCalStyle(allow, wxCAL_SEQUENTIAL_MONTH_SELECTION);
+}
+
+void MyFrame::OnCalShowSurroundingWeeks(wxCommandEvent& event)
+{
+ bool allow = GetMenuBar()->IsChecked(event.GetId());
+
+ m_panel->ToggleCalStyle(allow, wxCAL_SHOW_SURROUNDING_WEEKS);
+}
+
+void MyFrame::OnAllowYearUpdate(wxUpdateUIEvent& event)
+{
+ event.Enable( GetMenuBar()->IsChecked(Calendar_Cal_Month));