git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43560
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
virtual void MacVisibilityChanged();
virtual void MacEnabledStateChanged();
virtual void MacSuperChangedPosition();
virtual void MacVisibilityChanged();
virtual void MacEnabledStateChanged();
virtual void MacSuperChangedPosition();
+ virtual void MacCheckSpelling(bool check);
#ifndef __WXMAC_OSX__
virtual void MacControlUserPaneDrawProc(wxInt16 part);
#ifndef __WXMAC_OSX__
virtual void MacControlUserPaneDrawProc(wxInt16 part);
virtual void ShowPosition(long WXUNUSED(pos)) ;
virtual int GetLineLength(long lineNo) const ;
virtual wxString GetLineText(long lineNo) const ;
virtual void ShowPosition(long WXUNUSED(pos)) ;
virtual int GetLineLength(long lineNo) const ;
virtual wxString GetLineText(long lineNo) const ;
+ virtual void CheckSpelling(bool check) { }
#ifndef __WXMAC_OSX__
virtual void MacControlUserPaneDrawProc(wxInt16 part) = 0 ;
#ifndef __WXMAC_OSX__
virtual void MacControlUserPaneDrawProc(wxInt16 part) = 0 ;
+ virtual void CheckSpelling(bool check)
+ {
+#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_4
+ TXNSetSpellCheckAsYouType( m_txn, (Boolean) check );
+#endif
+ }
virtual void Clear() ;
virtual bool CanUndo() const ;
virtual void Clear() ;
virtual bool CanUndo() const ;
+void wxTextCtrl::MacCheckSpelling(bool check)
+{
+ GetPeer()->CheckSpelling(check);
+}
+
wxString wxTextCtrl::GetValue() const
{
return GetPeer()->GetStringValue() ;
wxString wxTextCtrl::GetValue() const
{
return GetPeer()->GetStringValue() ;
virtual void SetSelection(long from, long to);
virtual void SelectAll();
virtual void SetEditable(bool editable);
virtual void SetSelection(long from, long to);
virtual void SelectAll();
virtual void SetEditable(bool editable);
+
+ virtual void MacCheckSpelling(bool check);
// generate the wxEVT_COMMAND_TEXT_UPDATED event, like SetValue() does
void SendTextUpdatedEvent();
// generate the wxEVT_COMMAND_TEXT_UPDATED event, like SetValue() does
void SendTextUpdatedEvent();