]> git.saurik.com Git - wxWidgets.git/commitdiff
Cocoa text fields and views have their own context menus, so we should use those...
authorKevin Ollivier <kevino@theolliviers.com>
Mon, 22 Feb 2010 01:56:42 +0000 (01:56 +0000)
committerKevin Ollivier <kevino@theolliviers.com>
Mon, 22 Feb 2010 01:56:42 +0000 (01:56 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63533 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/osx/cocoa/private/textimpl.h

index 54800ace4a2f33b5d387a974acb5ff4f04a3874e..77d6f366b9ac15554987adae6f6521d0b07f41d0 100644 (file)
@@ -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;