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:
parent
7696081c90
commit
d66e7af9aa
21 changed files with 192 additions and 198 deletions
|
|
@ -113,7 +113,7 @@ void wxFontDataProperty::OnSetValue()
|
|||
|
||||
wxFont font = fontData.GetChosenFont();
|
||||
if ( !font.IsOk() )
|
||||
font = wxFont(10,wxSWISS,wxNORMAL,wxNORMAL);
|
||||
font = wxFontInfo(10).Family(wxFONTFAMILY_SWISS);
|
||||
|
||||
m_value = WXVARIANT(font);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue