ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage properties / Properties associated with windows, pages and controls
  • Spelling checker used in edit controls and in the columns of a Table control
  • Spelling checker used in the Word Processing controls
  • Spelling checker used
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
The CheckSpell property is used to enable or disable the automatic spelling checker.
A red line automatically appears under words that are not found in the dictionary:
  • in edit controls.
  • WINDEV in Table control columns.
  • WINDEV in Word Processing controls.
Remark: This property is equivalent to the option "Check the spelling" found:
  • in the "Details" tab of the description window of edit controls,
  • WINDEV in the "Details" tab of the description window of the Table control columns.
Example
// Enable the spell check in an edit control
EDT_Text.CheckSpell = True
Syntax

Determining if the spelling checker is enabled Hide the details

<Result> = <Control used>.CheckSpell
<Result>: Boolean
  • True if the spell check is enabled,
  • False otherwise.
<Control used>: Control name
Name of the control to be used:
  • edit control,
  • WINDEV column of a Table control,
  • WINDEV Word Processing control.

Enabling or disabling the spell check Hide the details

<Control used>.CheckSpell = <Enable/Disable>
<Control used>: Control name
Name of the control to be used:
  • edit control,
  • WINDEV column of a Table control,
  • WINDEV Word Processing control.
<Enable/Disable>: Boolean
  • True if the spell check must be enabled,
  • False otherwise.
iPhone/iPadIOS Widget Caution: the activation (or not) of spell check is not applied directly. Indeed, the control must lose focus and regain it (in order for the system to adapt to the control keyboard).
Remarks
WINDEVReports and QueriesWindowsUser code (UMC)

Spelling checker used in edit controls and in the columns of a Table control

In Edit controls and columns of a Table control in a WINDEV application, the CheckSpell property uses:
ConfigureSpellCheck is used to:
  • choose the spelling checker used.
  • enable the spelling checker for all the edit controls of the application.
  • configure the language used (if the OpenOffice spelling checker is used).
For the unrecognized words, the default context menu of WINDEV proposes the following options:
  • Replacing the word by a valid word (the 8 first suggestions of OpenOffice or the integrated checker are proposed).
  • Add the word to the dictionary.
WINDEVReports and QueriesWindowsUser code (UMC)

Spelling checker used in the Word Processing controls

In Word Processing controls, the CheckSpell property uses Hunspell dictionaries to check spelling.
By default, if your project contains a Word Processing control:
  • the French and English dictionaries are automatically copied (as well as their respective license) into the executable directory (configurable option in the project description window, "Options" tab).
  • the French and English dictionaries are loaded by default.
To use other dictionaries, they must be associated with a language and they must be loaded in memory by DictionaryLoad.
AndroidiPhone/iPadIOS Widget

Spelling checker used

The CheckSpell property uses the system spelling checker.
For the unrecognized words, the popup menu proposes the following options:
  • Replacing the word by a valid word.
  • Add the word to the dictionary.
Remark: The system spelling checker must be enabled.
Minimum version required
  • Version 11
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help