Don't use deprecated wxBOLD, wxNORMAL and similar constants.
Replace them with wxFONTWEIGHT_BOLD, wxFONTSTYLE_NORMAL or wxFONTWEIGHT_NORMAL and equivalents in the code of the library itself and in the samples. Also simplify font construction using wxFontInfo where possible to avoid specifying these constants at all if they are not needed. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@75590 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -110,11 +110,11 @@ void OwnerDrawnFrame::InitMenu()
|
||||
wxMenu *sub_menu = new wxMenu;
|
||||
|
||||
// vars used for menu construction
|
||||
wxFont fontLarge(18, wxROMAN, wxNORMAL, wxBOLD, false),
|
||||
fontUlined(12, wxDEFAULT, wxNORMAL, wxNORMAL, true),
|
||||
fontItalic(12, wxMODERN, wxITALIC, wxBOLD, false),
|
||||
wxFont fontLarge(wxFontInfo(18).Family(wxFONTFAMILY_ROMAN).Bold()),
|
||||
fontUlined(wxFontInfo(12).Underlined()),
|
||||
fontItalic(wxFontInfo(12).Italic().Bold()),
|
||||
// should be at least of the size of bitmaps
|
||||
fontBmp(14, wxDEFAULT, wxNORMAL, wxNORMAL, false);
|
||||
fontBmp(wxFontInfo(14));
|
||||
|
||||
// sorry for my artistic skills...
|
||||
wxBitmap bmpBell(wxT("bell")),
|
||||
|
Reference in New Issue
Block a user