From: Kevin Ollivier Date: Mon, 22 Feb 2010 01:56:42 +0000 (+0000) Subject: Cocoa text fields and views have their own context menus, so we should use those... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/e908dbcc92dc55fa378e06d6ef10d18fd43ccf87 Cocoa text fields and views have their own context menus, so we should use those instead. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63533 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/osx/cocoa/private/textimpl.h b/include/wx/osx/cocoa/private/textimpl.h index 54800ace4a..77d6f366b9 100644 --- a/include/wx/osx/cocoa/private/textimpl.h +++ b/include/wx/osx/cocoa/private/textimpl.h @@ -33,6 +33,7 @@ public : virtual void GetSelection( long* from, long* to) const ; virtual void SetSelection( long from , long to ); virtual void WriteText(const wxString& str) ; + virtual bool HasOwnContextMenu() const { return true; } virtual void controlAction(WXWidget slf, void* _cmd, void *sender); protected : @@ -62,6 +63,8 @@ public: virtual bool GetStyle(long position, wxTextAttr& style); virtual void SetStyle(long start, long end, const wxTextAttr& style); + virtual bool HasOwnContextMenu() const { return true; } + virtual void CheckSpelling(bool check); virtual wxSize GetBestSize() const;