X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6fda4e7a68a569f0d0fc0bce4b7e1f91dd4a0f84..61ecf6d34ffb087e4a02d1c4e29e1f155875eba0:/include/wx/mac/textctrl.h?ds=sidebyside diff --git a/include/wx/mac/textctrl.h b/include/wx/mac/textctrl.h index 2327eec3d5..5c2c753c43 100644 --- a/include/wx/mac/textctrl.h +++ b/include/wx/mac/textctrl.h @@ -12,7 +12,7 @@ #ifndef _WX_TEXTCTRL_H_ #define _WX_TEXTCTRL_H_ -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(__APPLE__) #pragma interface "textctrl.h" #endif @@ -78,6 +78,16 @@ public: // clears the dirty flag virtual void DiscardEdits(); + // set the max number of characters which may be entered in a single line + // text control + virtual void SetMaxLength(unsigned long len) ; + + // text control under some platforms supports the text styles: these + // methods allow to apply the given text style to the given selection or to + // set/get the style which will be used for all appended text + virtual bool SetStyle(long start, long end, const wxTextAttr& style); + virtual bool SetDefaultStyle(const wxTextAttr& style); + // writing text inserts it at the current position, appending always // inserts it at the end virtual void WriteText(const wxString& text); @@ -142,7 +152,8 @@ public: void OnUpdateRedo(wxUpdateUIEvent& event); virtual bool MacCanFocus() const { return true ; } - + virtual bool MacSetupCursor( const wxPoint& pt ) ; + virtual void MacSuperShown( bool show ) ; virtual bool Show(bool show = TRUE) ; @@ -155,6 +166,7 @@ protected: void* m_macTXN ; void* m_macTXNvars ; bool m_macUsesTXN ; + unsigned long m_maxLength ; DECLARE_EVENT_TABLE() };