Spell Checker

J. Landman Gay jacque at hyperactivesw.com
Tue Aug 6 17:51:01 EDT 2002


On 8/6/02 10:59 AM, Ray Horsley wrote:

> Thanks for the reply Jackie, however, the problem with highlighting the text
> (using Metacard's highlighting) is that the instant I bring up another stack
> as a modal which lets users determine wether they want to ignore the
> misspelled word, change it, etc. the highlighting goes away since I'm
> providing a blinking insertion point in the modal.


MetaCard offers a standard hilite just like HyperCard's, which does get 
removed when another object receives the focus. But the text backcolor 
is a separate property that remains even after MetaCard quits, just like 
a field's backcolor or a stack's backcolor. Once set, it stays until a 
script removes it.

Because it doesn't disappear automatically, there's one extra step when 
scripting the backcolor property to act like pseudo-hiliting. The script 
will need to store the relevant text chunk somewhere so that it can set 
the backcolor of that chunk to empty later on when you want to remove 
the color. Of course, if you know in advance that only one chunk will be 
colored at a time, then you could just set the backcolor of the entire 
text of the field to empty all at once, and you wouldn't need to keep 
track of the chunk.

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com




More information about the metacard mailing list