Remove redundant code from wxStatusBarMac
Remove a lot of Mac-specific code from wxStatusBarMac in favour of using shared wxStatusBarGeneric: - Now that wxFRAME_EX_METAL aka NSWindowStyleMaskTexturedBackground doesn’t affect text placement, there’s no reason for customized DrawFieldText(). As a side effect of this removal, ellipsizing fields is now supported. - Remove customized DoUpdateStatusText() code that is no longer needed. See https://github.com/wxWidgets/wxWidgets/pull/2160#pullrequestreview-563916013
This commit is contained in:
@@ -70,7 +70,7 @@ protected:
|
||||
void OnSysColourChanged(wxSysColourChangedEvent& event);
|
||||
|
||||
protected:
|
||||
|
||||
virtual int GetEffectiveFieldStyle(int i) const { return m_panes[i].GetStyle(); }
|
||||
virtual void DrawFieldText(wxDC& dc, const wxRect& rc, int i, int textHeight);
|
||||
virtual void DrawField(wxDC& dc, int i, int textHeight);
|
||||
|
||||
|
Reference in New Issue
Block a user