Implement minimal support for spell checking in wxOSX too

Reuse the existing CheckSpelling() function.

Also deprecate wxTextCtrl::MacCheckSpelling() in favour of the new
portable EnableProofCheck().
This commit is contained in:
Vadim Zeitlin
2021-08-22 22:11:39 +02:00
parent af43b7c965
commit 90e79d8ed4
8 changed files with 54 additions and 7 deletions

View File

@@ -1398,9 +1398,9 @@ public:
available on the current platform.
Currently this is supported in wxMSW (when running under Windows 8 or
later) and wxGTK when using GTK 3. In addition, wxMSW requires that the
text control has the wxTE_RICH2 style set. wxGTK3 requires that the
control has the wxTE_MULTILINE style.
later), wxGTK when using GTK 3 and wxOSX. In addition, wxMSW requires
that the text control has the wxTE_RICH2 style set. wxGTK3 and wxOSX
require that the control has the wxTE_MULTILINE style.
@param enable
Enables native proof checking if true, disables it otherwise.
@@ -1566,9 +1566,8 @@ public:
Returns @true if proof (spell) checking is currently active on this
control, @false otherwise.
@onlyfor{wxmsw,wxgtk}
@see EnableProofCheck()
This function is implemented for the same platforms as
EnableProofCheck() and returns @false for the other ones.
@since 3.1.6
*/