Implement wxTopLevelWindow::EnableCloseButton() for wxOSX

Just forward this wx method to Cocoa standardWindowButton:NSWindowCloseButton.

See #17133
This commit is contained in:
John Roberts
2015-09-06 14:12:16 +02:00
committed by Vadim Zeitlin
parent 8d6a2b3921
commit 6055d8d0a5
7 changed files with 26 additions and 2 deletions

View File

@@ -74,6 +74,10 @@ public:
virtual void SetTitle( const wxString& title);
virtual wxString GetTitle() const;
// EnableCloseButton(false) used to disable the "Close"
// button on the title bar
virtual bool EnableCloseButton(bool enable = true) wxOVERRIDE;
virtual void SetLabel(const wxString& label) { SetTitle( label ); }
virtual wxString GetLabel() const { return GetTitle(); }