X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/77ffb5937e89927b621128789401db8921fe580f..8998887c224924d5f6f4601597c162d6429495e1:/include/wx/mac/carbon/textctrl.h diff --git a/include/wx/mac/carbon/textctrl.h b/include/wx/mac/carbon/textctrl.h index d14d79e406..109fbf394e 100644 --- a/include/wx/mac/carbon/textctrl.h +++ b/include/wx/mac/carbon/textctrl.h @@ -6,7 +6,7 @@ // Created: 1998-01-01 // RCS-ID: $Id$ // Copyright: (c) Stefan Csomor -// Licence: wxWidgets licence +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef _WX_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,23 +173,20 @@ 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(); - virtual wxSize DoGetBestSize() const; + virtual wxSize DoGetBestSize() const; bool m_editable ; // flag is set to true when the user edits the controls contents bool m_dirty; - // one of the following objects is used for representation, the other one is NULL - 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() };