At 2:15 PM -0700 7/12/01, Richard Gaskin wrote:
>If I set the focusColor of a field to empty, it uses the focusColor of its
>owner.  But in my layout I don't want the focusColor to show at all -- how
>can I turn it off?

You can use a rectangle with a line width of 2, in a layer higher than the field, and 
the same color as your card. Set the rect of the rectangle like so:

 put the rect of fld "someField" into tRect
  put 2 into tAmount
  subtract tAmount from item 1 of tRect
  subtract tAmount from item 2 of tRect
  add tAmount to item 3 of tRect
  add tAmount to item 4 of tRect
  set the rect of grc "hider" to tRect

As long as "hider" is above "someField" you won't see the focusRect, at least on my 
Mac you won't :-)

I have a stack that shows this, if I haven't been clear.

Right now doing this plays hob with the insertion point -- the cursor goes away for 
me. I'll write that aspect up more formally as a bug report.

Obviously this would be a less wonderful solution if you had the field over graphics 
or something. But for a solid color it works.

gc
-- 


Archives: http://www.mail-archive.com/[email protected]/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.

Reply via email to