- menuFont->Append(Font_EnumFamilies, "Enumerate font &families\tCtrl-F");
- menuFont->Append(Font_EnumFixedFamilies,
- "Enumerate f&ixed font families\tCtrl-I");
- menuFont->Append(Font_EnumEncodings,
- "Enumerate &encodings\tCtrl-E");
- menuFont->Append(Font_EnumFamiliesForEncoding,
- "Find font for en&coding...\tCtrl-C",
- "Find font families for given encoding");
+ menuFont->AppendCheckItem(Font_Bold, wxT("&Bold\tCtrl-B"), wxT("Toggle bold state"));
+ menuFont->AppendCheckItem(Font_Italic, wxT("&Oblique\tCtrl-O"), wxT("Toggle italic state"));
+ menuFont->AppendCheckItem(Font_Underlined, wxT("&Underlined\tCtrl-U"),
+ wxT("Toggle underlined state"));
+
+ menuFont->AppendSeparator();
+ menuFont->Append(Font_CheckNativeToFromString,
+ wxT("Check Native Font Info To/From String"));
+
+ wxMenu *menuSelect = new wxMenu;
+ menuSelect->Append(Font_Choose, wxT("&Select font...\tCtrl-S"),
+ wxT("Select a standard font"));
+
+ wxMenu *menuStdFonts = new wxMenu;
+ menuStdFonts->Append(Font_wxNORMAL_FONT, wxT("wxNORMAL_FONT"), wxT("Normal font used by wxWidgets"));
+ menuStdFonts->Append(Font_wxSMALL_FONT, wxT("wxSMALL_FONT"), wxT("Small font used by wxWidgets"));
+ menuStdFonts->Append(Font_wxITALIC_FONT, wxT("wxITALIC_FONT"), wxT("Italic font used by wxWidgets"));
+ menuStdFonts->Append(Font_wxSWISS_FONT, wxT("wxSWISS_FONT"), wxT("Swiss font used by wxWidgets"));
+ menuSelect->Append(Font_Standard, wxT("Standar&d fonts"), menuStdFonts);
+
+ menuSelect->AppendSeparator();
+ menuSelect->Append(Font_EnumFamilies, wxT("Enumerate font &families\tCtrl-F"));
+ menuSelect->Append(Font_EnumFixedFamilies,
+ wxT("Enumerate fi&xed font families\tCtrl-X"));
+ menuSelect->Append(Font_EnumEncodings,
+ wxT("Enumerate &encodings\tCtrl-E"));
+ menuSelect->Append(Font_EnumFamiliesForEncoding,
+ wxT("Find font for en&coding...\tCtrl-C"),
+ wxT("Find font families for given encoding"));