- "&Monday first weekday\tCtrl-M",
- "Toggle between Mon and Sun as the first week day",
- TRUE);
- menuCal->Append(Calendar_Cal_Holidays, "Show &holidays\tCtrl-H",
- "Toggle highlighting the holidays",
- TRUE);
- menuCal->Append(Calendar_Cal_Special, "Highlight &special dates\tCtrl-S",
- "Test custom highlighting",
- TRUE);
+ _T("Monday &first weekday\tCtrl-F"),
+ _T("Toggle between Mon and Sun as the first week day"),
+ true);
+ menuCal->Append(Calendar_Cal_Holidays, _T("Show &holidays\tCtrl-H"),
+ _T("Toggle highlighting the holidays"),
+ true);
+ menuCal->Append(Calendar_Cal_Special, _T("Highlight &special dates\tCtrl-S"),
+ _T("Test custom highlighting"),
+ true);
+ menuCal->Append(Calendar_Cal_SurroundWeeks,
+ _T("Show s&urrounding weeks\tCtrl-W"),
+ _T("Show the neighbouring weeks in the prev/next month"),
+ true);
+ menuCal->AppendSeparator();
+ menuCal->Append(Calendar_Cal_SeqMonth,
+ _T("To&ggle month selector style\tCtrl-G"),
+ _T("Use another style for the calendar controls"),
+ true);
+ menuCal->Append(Calendar_Cal_Month, _T("&Month can be changed\tCtrl-M"),
+ _T("Allow changing the month in the calendar"),
+ true);
+ menuCal->Append(Calendar_Cal_Year, _T("&Year can be changed\tCtrl-Y"),
+ _T("Allow changing the year in the calendar"),
+ true);
+ menuCal->AppendSeparator();
+ menuCal->Append(Calendar_Cal_SetDate, _T("Call &SetDate(2005-12-24)"), _T("Set date to 2005-12-24."));
+ menuCal->Append(Calendar_Cal_Today, _T("Call &Today()"), _T("Set the current date."));
+ menuCal->AppendSeparator();
+ menuCal->AppendCheckItem(Calendar_Cal_Resizable, _T("Make &resizable\tCtrl-R"));
+
+#if wxUSE_DATEPICKCTRL
+ wxMenu *menuDate = new wxMenu;
+ menuDate->AppendCheckItem(Calendar_DatePicker_ShowCentury,
+ _T("Al&ways show century"));
+ menuDate->AppendCheckItem(Calendar_DatePicker_DropDown,
+ _T("Use &drop down control"));
+ menuDate->AppendCheckItem(Calendar_DatePicker_AllowNone,
+ _T("Allow &no date"));
+ menuDate->AppendCheckItem(Calendar_DatePicker_StartWithNone,
+ _T("Start &with no date"));
+#if wxUSE_DATEPICKCTRL_GENERIC
+ menuDate->AppendCheckItem(Calendar_DatePicker_Generic,
+ _T("Use &generic version of the control"));
+#endif // wxUSE_DATEPICKCTRL_GENERIC
+ menuDate->AppendSeparator();
+ menuDate->Append(Calendar_DatePicker_AskDate, _T("&Choose date...\tCtrl-D"), _T("Show dialog with wxDatePickerCtrl"));
+#endif // wxUSE_DATEPICKCTRL