Reshape Graphic
    Frank D. Engel, Jr. 
    fde101 at fjrhome.net
       
    Sat Oct 23 15:49:27 EDT 2004
    
    
  
I was able to get this working well enough from the IDE, but it does 
not work when I build a standalone.  Is revLibrary not copied into a 
standalone, or is there an option in the Standalone Builder that I have 
simply missed?
A simplified version of the code I use (from a button which selects the 
pointer tool) is as follows:
   choose pointer tool
   if pWhich is "1" then
     if the long id of button "revReshape" of card 1 of stack 
"revLibrary" is among the lines of the frontScripts then
       revSetMarkers true
       remove script of button "revReshape" of card 1 of stack 
"revLibrary" from front
     end if
   else
     if the long id of button "revReshape" of card 1 of stack 
"revLibrary" is not among the lines of the frontScripts then
       insert script of button "revReshape" of card 1 of stack 
"revLibrary" into front
       put empty into gREVObjectsList
       revSetMarkers
     end if
   end if
On Oct 22, 2004, at 1:56 PM, Jeanne A. E. DeVoto wrote:
> 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
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
>
-----------------------------------------------------------
Frank D. Engel, Jr.  <fde101 at fjrhome.net>
$ ln -s /usr/share/kjvbible /usr/manual
$ true | cat /usr/manual | grep "John 3:16"
John 3:16 For God so loved the world, that he gave his only begotten 
Son, that whosoever believeth in him should not perish, but have 
everlasting life.
$
    
    
More information about the use-livecode
mailing list