X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ee2ec18e88701d8f0709009616584153ca85d7a7..09b895cb4a954494063eb17d3dc302a654fd99e5:/include/wx/mac/carbon/textctrl.h diff --git a/include/wx/mac/carbon/textctrl.h b/include/wx/mac/carbon/textctrl.h index 1818f2d602..a2f5956328 100644 --- a/include/wx/mac/carbon/textctrl.h +++ b/include/wx/mac/carbon/textctrl.h @@ -18,6 +18,9 @@ // has more features (backgrounds etc.), but may show redraw artefacts and other // problems depending on your usage; hence, the default is 'false'. #define wxMAC_TEXTCONTROL_USE_MLTE wxT("mac.textcontrol-use-mlte") + // set this to 'true' if you want editable text controls to have spell checking turned + // on by default, you can change this setting individually on a control using MacCheckSpelling + #define wxMAC_TEXTCONTROL_USE_SPELL_CHECKER wxT("mac.textcontrol-use-spell-checker") #endif #include "wx/control.h" @@ -26,7 +29,7 @@ class wxMacTextControl; -class WXDLLEXPORT wxTextCtrl: public wxTextCtrlBase +class WXDLLIMPEXP_CORE wxTextCtrl: public wxTextCtrlBase { DECLARE_DYNAMIC_CLASS(wxTextCtrl) @@ -159,7 +162,6 @@ public: void OnUpdateDelete(wxUpdateUIEvent& event); void OnUpdateSelectAll(wxUpdateUIEvent& event); - void OnEraseBackground(wxEraseEvent& event); void OnContextMenu(wxContextMenuEvent& event); virtual bool MacCanFocus() const @@ -168,19 +170,8 @@ public: virtual bool MacSetupCursor( const wxPoint& pt ); virtual void MacVisibilityChanged(); - virtual void MacEnabledStateChanged(); virtual void MacSuperChangedPosition(); - -#ifndef __WXMAC_OSX__ - virtual void MacControlUserPaneDrawProc(wxInt16 part); - virtual wxInt16 MacControlUserPaneHitTestProc(wxInt16 x, wxInt16 y); - virtual wxInt16 MacControlUserPaneTrackingProc(wxInt16 x, wxInt16 y, void* actionProc); - virtual void MacControlUserPaneIdleProc(); - virtual wxInt16 MacControlUserPaneKeyDownProc(wxInt16 keyCode, wxInt16 charCode, wxInt16 modifiers); - virtual void MacControlUserPaneActivateProc(bool activating); - virtual wxInt16 MacControlUserPaneFocusProc(wxInt16 action); - virtual void MacControlUserPaneBackgroundProc(void* info); -#endif + virtual void MacCheckSpelling(bool check); wxMacTextControl * GetPeer() const { return (wxMacTextControl*) m_peer; } @@ -191,6 +182,8 @@ protected: virtual wxSize DoGetBestSize() const; + virtual void CreatePeer(const wxString& str, const wxPoint& pos, const wxSize& size, long style ); + virtual void DoSetValue(const wxString& value, int flags = 0); bool m_editable;