virtual void MacVisibilityChanged();
virtual void MacEnabledStateChanged();
virtual void MacSuperChangedPosition();
+ virtual void MacCheckSpelling(bool check);
#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 CheckSpelling(bool check) { }
#ifndef __WXMAC_OSX__
virtual void MacControlUserPaneDrawProc(wxInt16 part) = 0 ;
return false ;
}
+ 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 ;
{
}
+void wxTextCtrl::MacCheckSpelling(bool check)
+{
+ GetPeer()->CheckSpelling(check);
+}
+
wxString wxTextCtrl::GetValue() const
{
return GetPeer()->GetStringValue() ;
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();