X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6d4c54a7680f240153033f44e233c20b53ec6043..64631e82fda8fd68cd2f9ce1aba71a7e0747ba46:/include/wx/mac/carbon/textctrl.h diff --git a/include/wx/mac/carbon/textctrl.h b/include/wx/mac/carbon/textctrl.h index 7bf124a98a..109fbf394e 100644 --- a/include/wx/mac/carbon/textctrl.h +++ b/include/wx/mac/carbon/textctrl.h @@ -20,6 +20,8 @@ WXDLLEXPORT_DATA(extern const wxChar*) wxTextCtrlNameStr; +class wxMacTextControl ; + // Single-line text item class WXDLLEXPORT wxTextCtrl: public wxTextCtrlBase { @@ -153,6 +155,8 @@ public: void OnUpdatePaste(wxUpdateUIEvent& event); void OnUpdateUndo(wxUpdateUIEvent& event); void OnUpdateRedo(wxUpdateUIEvent& event); + + void OnEraseBackground(wxEraseEvent& event) ; virtual bool MacCanFocus() const { return true ; } virtual bool MacSetupCursor( const wxPoint& pt ) ; @@ -169,6 +173,7 @@ public: virtual wxInt16 MacControlUserPaneFocusProc(wxInt16 action) ; virtual void MacControlUserPaneBackgroundProc(void* info) ; + wxMacTextControl* GetPeer() const { return (wxMacTextControl*) m_peer ; } protected: // common part of all ctors void Init(); @@ -180,14 +185,8 @@ protected: // flag is set to true when the user edits the controls contents bool m_dirty; - WXWidget m_scrollView ; - WXWidget m_textView ; - - void* m_macTXN ; unsigned long m_maxLength ; // need to make this public because of the current implementation via callbacks -public : - void* m_macTXNvars ; private : DECLARE_EVENT_TABLE() };