Reshape Graphic
Jeanne A. E. DeVoto
revolution at jaedworks.com
Fri Oct 22 13:56:33 EDT 2004
At 10:36 AM -0400 10/21/2004, Frank D. Engel, Jr. wrote:
>Anyone know how to activate the "Reshape Graphic" command (Object
>menu of Rev 2.5) within a script?
Enter this in the message box and you'll see the script:
edit script of btn "revReshape" of cd 1 of stack "revLibrary"
When you reshape a selected graphic, this script is made into a
temporary frontScript, and the revSetMarkers handler is executed
(which sets up the standard visual appearance of the little square
markers at the points of the graphic).
The frontScript handles mouse clicks, with a variety of special
behaviors such as command-clicking a point to remove it. It basically
tracks the mouse while it's down, continually updating the graphic's
points property to reflect the user's moving one of the control
points. (I notice the dreaded "repeat until the mouse is down" makes
an appearance ;-)
--
jeanne a. e. devoto ~ revolution at jaedworks.com
http://www.jaedworks.com
More information about the use-livecode
mailing list