Graphic object <-- mouseDown?

Ken Norris pixelbird at interisland.net
Thu Mar 13 20:43:01 EST 2003


**********
> Subject: Graphic object <-- mouseDown?
> Date: Thu, 13 Mar 2003 09:31:20 -0500
> From: "Ivers, Doug E" <Doug_Ivers at lord.com>

> Don't graphic objects respond to mouseUp, mouseDown, mouseMove, etc.?
----------
Yep.
----------
> Where would I find this in the docs?
----------
First...please change your email settings for this list to "Plain", w'e're
getting it in MIME format with all the extra junk. Thanks.

Check out this route:

Help menu > Revolution Documentation > Development Guide > Developing with
Revolution > About > Revolution for new developers > Stacks and Objects

All graphics are objects and are scriptable just like any other control.
Choose a Graphic Tool and make a graphic object, then choose the Arrow Tool
and double-click it. See, you get its dialog just like a button. Click on
the "Script" tab and it will open the script editor. Write a short script
like:

on mouseMove x,y
  put x,y 
end mouseMove

...Then choose the Browse Tool. As soon as you move the mouse inside the
graphic it will open the message box and display changing mouse coordinates
as long as it's inside the graphic.

HTH,
Ken N.




More information about the use-livecode mailing list