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:
@@ -7254,9 +7254,9 @@ void wxGrid::SetColLabelAlignment( int horiz, int vert )
|
||||
// Note: under MSW, the default column label font must be changed because it
|
||||
// does not support vertical printing
|
||||
//
|
||||
// Example: wxFont font(9, wxSWISS, wxNORMAL, wxBOLD);
|
||||
// pGrid->SetLabelFont(font);
|
||||
// pGrid->SetColLabelTextOrientation(wxVERTICAL);
|
||||
// Example:
|
||||
// pGrid->SetLabelFont(wxFontInfo(9).Family(wxFONTFAMILY_SWISS));
|
||||
// pGrid->SetColLabelTextOrientation(wxVERTICAL);
|
||||
//
|
||||
void wxGrid::SetColLabelTextOrientation( int textOrientation )
|
||||
{
|
||||
|
Reference in New Issue
Block a user