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:
Václav Slavík
2021-01-16 18:30:45 +01:00
parent d28771cfb5
commit 634f60ff23
4 changed files with 6 additions and 51 deletions

View File

@@ -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);