- bool checkable = GetBool(_T("checkable"));
-
- wxMenuItem *mitem = new wxMenuItem(p_menu, id, GetText(_T("label")),
- GetText(_T("help")), checkable);
+ bool checkable = GetBool(wxT("checkable"));
+ wxString label = GetText(wxT("label"));
+ wxString accel = GetText(wxT("accel"));
+ wxString fullLabel = label;
+ if (!accel.IsEmpty())
+ fullLabel << wxT("\t") << accel;
+
+ wxMenuItem *mitem = new wxMenuItem(p_menu, id, fullLabel,
+ GetText(wxT("help")), checkable);