]> git.saurik.com Git - wxWidgets.git/commitdiff
Use a regular ID for the menu
authorRobin Dunn <robin@alldunn.com>
Mon, 23 Feb 2004 20:22:14 +0000 (20:22 +0000)
committerRobin Dunn <robin@alldunn.com>
Mon, 23 Feb 2004 20:22:14 +0000 (20:22 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25928 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/font/font.cpp

index 5f35d6ab8feb6afe5a3d923dd6b5382e5a0b9c1c..047299d82aaf3a83a198fc2bc6e88dbf4c529875 100644 (file)
@@ -144,6 +144,7 @@ enum
     Font_wxSMALL_FONT,
     Font_wxITALIC_FONT,
     Font_wxSWISS_FONT,
+    Font_Standard,
 
     Font_Choose = 100,
     Font_EnumFamiliesForEncoding,
@@ -260,7 +261,7 @@ MyFrame::MyFrame(const wxString& title, const wxPoint& pos, const wxSize& size)
     menuStdFonts->Append(Font_wxSMALL_FONT,  wxT("wxSMALL_FONT"),  wxT("Small font used by wxWindows"));
     menuStdFonts->Append(Font_wxITALIC_FONT, wxT("wxITALIC_FONT"), wxT("Italic font used by wxWindows"));
     menuStdFonts->Append(Font_wxSWISS_FONT,  wxT("wxSWISS_FONT"),  wxT("Swiss font used by wxWindows"));
-    menuSelect->Append(-2, wxT("Standar&d fonts"), menuStdFonts);
+    menuSelect->Append(Font_Standard, wxT("Standar&d fonts"), menuStdFonts);
 
     menuSelect->AppendSeparator();
     menuSelect->Append(Font_EnumFamilies, wxT("Enumerate font &families\tCtrl-F"));