the foundChunk rectangle

Richard Gaskin ambassador at
Thu Oct 31 10:56:00 EST 2002

Mark Swindell wrote:

> I have a field in which I want a string of text selected, the textcolor  of
> that string changed, and then I want the find rectangle to disappear.
> However, looking at the transcript dictionary, it looks like the only way to
> make the rectangle disappear is to insert the cursor into the field, or
> leave the card.  Setting the selected of the field to false doesn't work, as
> it does in SuperCard.  Is there another way?
> (Also, I was going to copy and paste the section out of the dictionary to
> quote, but discovered you can't do that.  What's up with that?)

You can force a redraw by locking and unlocking the screen:

on mouseUp
  find "t" in fld 1
  put the foundchunk into tSel
  lock screen
  unlock screen
select tSel
end mouseUp

 Richard Gaskin 
 Fourth World Media Corporation
 Custom Software and Web Development for All Major Platforms
 Developer of WebMerge 2.0: Publish any database on any site
 Ambassador at
 Tel: 323-225-3717                       AIM: FourthWorldInc

More information about the use-livecode mailing list