Tech Tip: Invoking the Spell Checker from the On Clicked event of a button
PRODUCT: 4D | VERSION: 13.3 | PLATFORM: Mac & Win
Published On: November 13, 2013
When using the SPELL CHECKING command to invoke the spell checker it is important to understand that you must first set the focus object. This is because the SPELL CHECKING command utilizes the field or variable having focus in the currently displayed form.
The following code sets the focus to myInputObject and then invokes the spell checker on that object:
Case of : (Form event=On Clicked) GOTO OBJECT(*;"myInputObject") SPELL CHECKING End case |
Another option is to uncheck the 'Focusable' option from the property list of the button.