Article # 8, added by Geoworks, historical record
| first | previous | index | next | last |

Using SpellControlClass




Question:
I am trying to use the SpellChecker in my program, but when I test it I just
get a little box with a disabled button. Am I doing something wrong?

Answer:
The spell checker is disabled in the GEOS EC and NC versions because Geoworks
did not license the checker for the SDK versions of GEOS. It is only
available in the full GEOS version that is not part of the GEOS SDK. Also,
the SpellControl is one of those that is not to be put in a GenInteraction.
It should be a direct child of your Edit menu:

    @object GenInteractionClass MyEditMenu = {
        GI_comp = @MySpellControl;
        ...
    } /* MyEditMenu */

    @object SpellControlClass MySpellControl = {
        GI_visMoniker = "Check Spelling";
        GI_states = @default | GS_ENABLED; /* Must enable. */
        GCI_output = ( TO_APP_TARGET ); /* Go to text object. */
    } /* MySpellControl */