Add support for using native spell checking in wxTextCtrl
Add wxTextCtrl::EnableSpellCheck() and implement it for wxMSW and wxGTK3. Closes #17544.
This commit is contained in:
@@ -111,6 +111,15 @@ public:
|
||||
bool ShowNativeCaret(bool show = true);
|
||||
bool HideNativeCaret() { return ShowNativeCaret(false); }
|
||||
|
||||
#if wxUSE_RICHEDIT && wxUSE_SPELLCHECK
|
||||
// Use native spelling and grammar checking functions.
|
||||
// This is only available in wxTE_RICH2 controls.
|
||||
virtual bool EnableProofCheck(bool WXUNUSED(enable) = true,
|
||||
const wxTextProofOptions& WXUNUSED(options) =
|
||||
wxTextProofOptions()) wxOVERRIDE;
|
||||
virtual bool IsProofCheckEnabled() const wxOVERRIDE;
|
||||
#endif // wxUSE_RICHEDIT && wxUSE_SPELLCHECK
|
||||
|
||||
// Implementation from now on
|
||||
// --------------------------
|
||||
|
||||
|
Reference in New Issue
Block a user