+ menuFont->AppendCheckItem(Font_Bold, wxT("&Bold\tCtrl-B"), wxT("Toggle bold state"));
+ menuFont->AppendCheckItem(Font_Light, wxT("&Light\tCtrl-L"), wxT("Toggle light state"));
+ menuFont->AppendSeparator();
+ menuFont->AppendCheckItem(Font_Italic, wxT("&Oblique\tCtrl-O"), wxT("Toggle italic state"));
+#ifndef __WXMSW__
+ // under wxMSW slant == italic so there's no reason to provide another menu item for the same thing
+ menuFont->AppendCheckItem(Font_Slant, wxT("&Slant\tCtrl-S"), wxT("Toggle slant state"));
+#endif
+ menuFont->AppendSeparator();
+ menuFont->AppendCheckItem(Font_Underlined, wxT("&Underlined\tCtrl-U"),
+ wxT("Toggle underlined state"));
+ menuFont->AppendCheckItem(Font_Strikethrough, wxT("&Strikethrough"),
+ wxT("Toggle strikethrough state"));
+
+ menuFont->AppendSeparator();
+ menuFont->Append(Font_SetNativeDesc,
+ wxT("Set native font &description\tShift-Ctrl-D"));
+ menuFont->Append(Font_SetNativeUserDesc,
+ wxT("Set &user font description\tShift-Ctrl-U"));
+ menuFont->AppendSeparator();
+ menuFont->Append(Font_SetFamily, wxT("Set font family"));
+ menuFont->Append(Font_SetFaceName, wxT("Set font face name"));
+ menuFont->Append(Font_SetEncoding, wxT("Set font &encoding\tShift-Ctrl-E"));
+
+ 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);
+
+ wxMenu *menuSettingFonts = new wxMenu;
+ menuSettingFonts->Append(Font_wxSYS_OEM_FIXED_FONT, wxT("wxSYS_OEM_FIXED_FONT"),
+ wxT("Original equipment manufacturer dependent fixed-pitch font."));
+ menuSettingFonts->Append(Font_wxSYS_ANSI_FIXED_FONT, wxT("wxSYS_ANSI_FIXED_FONT"),
+ wxT("Windows fixed-pitch (monospaced) font. "));
+ menuSettingFonts->Append(Font_wxSYS_ANSI_VAR_FONT, wxT("wxSYS_ANSI_VAR_FONT"),
+ wxT("Windows variable-pitch (proportional) font."));
+ menuSettingFonts->Append(Font_wxSYS_SYSTEM_FONT, wxT("wxSYS_SYSTEM_FONT"),
+ wxT("System font."));
+ menuSettingFonts->Append(Font_wxSYS_DEVICE_DEFAULT_FONT, wxT("wxSYS_DEVICE_DEFAULT_FONT"),
+ wxT("Device-dependent font."));
+ menuSettingFonts->Append(Font_wxSYS_DEFAULT_GUI_FONT, wxT("wxSYS_DEFAULT_GUI_FONT"),
+ wxT("Default font for user interface objects such as menus and dialog boxes. "));
+ menuSelect->Append(Font_SystemSettings, wxT("System fonts"), menuSettingFonts);
+
+
+ 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"));