Spell Checker
Ray Horsley
ray at linkitonline.com
Wed Aug 7 13:13:01 EDT 2002
on 8/6/02 2:49 PM, J. Landman Gay at jacque at hyperactivesw.com wrote:
> 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.
Ahhhhhhh!!! Now I get it. I didn't realize you could set the backColor of
a chunk of text. I misunderstood you to suggest I simply set the color of
the text. Thanks for the detailed explanation Jackie!
Ray
More information about the metacard
mailing list