Restricting graphics to a field?

Jan Schenkel janschenkel at yahoo.com
Thu Jan 15 12:52:00 EST 2004


--- Dar Scott <dsc at swcp.com> wrote:
> 
> On Thursday, January 15, 2004, at 07:22 AM, Doug
> Lerner wrote:
> 
> > Is there a way of restricting the graphics drawing
> so it can only draw 
> > in
> > the region defined by a field?
> 
> Maybe you can mimic the tool with a cursor change
> and then when 
> entering or leaving the draw area actually change
> the tool.
> 
> Dar Scott
> 

Sorry Dar, but that doesn't work. I tried the
following on my Win2K computer.

I created a rectangle and set its script to
--
on mouseEnter
  choose button tool
end mouseEnter
on mouseLeave
  choose browse tool
end mouseLeave
--
For some bizarre reason I was getting a huge strain of
mouseLeave/mouseEnter pairs whenever I moved the mouse
or tried to click.

Jan Schenkel.

=====
"As we grow older, we grow both wiser and more foolish at the same time."  (La Rochefoucauld)

__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus


More information about the use-livecode mailing list