Resize stack ...

Mark Schonewille m.schonewille at economy-x-talk.com
Fri May 14 07:14:41 EDT 2010


Hi Jean-Pierre,

Create a button with the following script:

on mouseDown
      put item 1 of the loc of me - the mouseH into myDif1
      put item 2 of the loc of me - the mouseV into myDif2
      repeat until the mouse is up
           set the loc of me to the mouseH + myDif1,the mouseV + myDif2
           put the topleft of this stack & comma & item 1 of the  
topleft of this stack \
                  + item 1 of the bottomright of me & comma & item 2  
of the topleft \
                  of this stack + item 2 of the bottomright of me into  
myNewRect
           set the rect of this stack to myNewRect
      end repeat
end mouseDown

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer

Economy-x-Talk is always looking for new projects. Contact me for a  
quote http://economy-x-talk.com/contact.html
Download Clipboard Link http://clipboardlink.economy-x-talk.com and  
share the clipboard of your computer over the local network.

On 14 mei 2010, at 12:25, Jean-Pierre Soto wrote:

> Hello,
>
> is there a way for user to resize stack when the decoration of this  
> stack is set to empty.
>
> Jean-Pierre




More information about the use-livecode mailing list