- menuCal->Append(Calendar_Cal_SetDate, _T("SetDate()"), _T("Set date to 2005-12-24."));
- menuCal->Append(Calendar_Cal_Today, _T("Today()"), _T("Set the current date."));
-
- // now append the freshly created menu to the menu bar...
- wxMenuBar *menuBar = new wxMenuBar;
- menuBar->Append(menuFile, _T("&File"));
- menuBar->Append(menuCal, _T("&Calendar"));
-
- menuBar->Check(Calendar_Cal_Monday, TRUE);
- menuBar->Check(Calendar_Cal_Holidays, TRUE);
- menuBar->Check(Calendar_Cal_Month, TRUE);
- menuBar->Check(Calendar_Cal_Year, TRUE);
+ menuCal->Append(Calendar_Cal_SetDate, wxT("Call &SetDate(2005-12-24)"), wxT("Set date to 2005-12-24."));
+ menuCal->Append(Calendar_Cal_Today, wxT("Call &Today()"), wxT("Set to the current date."));
+ menuCal->Append(Calendar_Cal_BeginDST, "Call SetDate(GetBeginDST())");
+ menuCal->AppendSeparator();
+ menuCal->AppendCheckItem(Calendar_Cal_Resizable, wxT("Make &resizable\tCtrl-R"));
+ menuBar->Append(menuCal, wxT("&Calendar"));
+
+#if wxUSE_DATEPICKCTRL
+ wxMenu *menuDate = new wxMenu;
+ menuDate->AppendCheckItem(Calendar_DatePicker_ShowCentury,
+ wxT("Al&ways show century"));
+ menuDate->AppendCheckItem(Calendar_DatePicker_DropDown,
+ wxT("Use &drop down control"));
+ menuDate->AppendCheckItem(Calendar_DatePicker_AllowNone,
+ wxT("Allow &no date"));
+ menuDate->AppendCheckItem(Calendar_DatePicker_StartWithNone,
+ wxT("Start &with no date"));
+#if wxUSE_DATEPICKCTRL_GENERIC
+ menuDate->AppendCheckItem(Calendar_DatePicker_Generic,
+ wxT("Use &generic version of the control"));
+#endif // wxUSE_DATEPICKCTRL_GENERIC
+ menuDate->AppendSeparator();
+ menuDate->Append(Calendar_DatePicker_AskDate, wxT("&Choose date...\tCtrl-D"), wxT("Show dialog with wxDatePickerCtrl"));
+ menuBar->Append(menuDate, wxT("&Date picker"));
+#endif // wxUSE_DATEPICKCTRL
+
+#if wxUSE_TIMEPICKCTRL
+ wxMenu *menuTime = new wxMenu;
+#if wxUSE_TIMEPICKCTRL_GENERIC
+ menuTime->AppendCheckItem(Calendar_TimePicker_Generic,
+ wxT("Use &generic version of the control"));
+ menuTime->AppendSeparator();
+#endif // wxUSE_TIMEPICKCTRL_GENERIC
+ menuTime->Append(Calendar_TimePicker_AskTime, wxT("&Choose time...\tCtrl-T"), wxT("Show dialog with wxTimePickerCtrl"));
+ menuBar->Append(menuTime, wxT("&Time picker"));
+#endif // wxUSE_TIMEPICKCTRL
+
+ menuBar->Check(Calendar_Cal_Monday, true);
+ menuBar->Check(Calendar_Cal_Holidays, true);
+ menuBar->Check(Calendar_Cal_Month, true);
+ menuBar->Check(Calendar_Cal_LimitDates, false);
+
+#if wxUSE_DATEPICKCTRL
+ menuBar->Check(Calendar_DatePicker_ShowCentury, true);
+#endif // wxUSE_DATEPICKCTRL