Home

At Your Service

Prepress AutoTools

Scripting
Frontier
REALbasic
Tips & Samples

Spell Checker
Instructions
Integration

Plugins
Buglist

Siteliner

In The News

Contact Info


 

Macrobyte Resources

Use the Code

If you'd like to use any of this code in any of your own applications (even commercial apps), you have our permission. All we ask is that you give credit to the author (Seth Dillingham or Macrobyte Resources), in either the "Splash Screen" the "About" window, or in your application's documentation.

Integrating the Spell Checker Into Your Own App

We've made it as easy as we could, to use this same code in your own applications. Just follow these simple steps:

  1. Open Project
    Open the project file in REALbasic. Any recent version should work.

  2. Export Items
    Export the following items from the project file:
    • The window namedSpellingWindow
    • The custom class named SpellWord

  3. Import Items
    Open your own project file, and drag the exported items into it. You'll also need the AppleScript named LaunchApplication, provided in the download archive.

    It's used for launching the Spell Checker appliation (Excalibur) when necessary, and uses an AppleEvent that RB can not currently duplicate (bug report submitted 9/5/98).

  4. Call the Spellchecker Code
    Add a call to the new spellchecking code, whereever is appropriate in your application's code. The call is very simple, it looks like this:

    Dim myLongString as String
    myLongString = "Any string that you want to spell check! Spell someting wrong!"
    myLongString = SpellingWindow.CheckFullString( myLongString )


That's it! You've now integrated a "Word Services - friendly" spell checker into your application.





This site built using Frontier 5 with a Macintosh. Last updated Thursday, March 25, 1999
Contact Macrobyte Resources with comments or questions.