[TIDBIT] A resizeStack button

Eric Chatonet eric.chatonet at sosmartsoftware.com
Fri Jul 22 08:32:08 EDT 2005


Hi Hugh,

You have a good script too in Rev Object Library.
The scripted control is named "Mac Style Resizer"

Le 22 juil. 05 à 13:28, FlexibleLearning at aol.com a écrit :

> A tidbit for your Scripter's Scrapbook:
> - How  to use a button to resize a stack
>
> Put this in the script of a button  called "resizeMe", placed at the
> bottomRight of your stack...
>
> on  mouseMove
> if the mouse is up then pass mouseMove
> put the  topLeft of this stack into tTL
> put globalLoc(the mouseLoc) into  tML
> put max(the minWidth of this stack + item 1 of tTL,item 1 of tML)  \
> into item 1 of tML
> put max(the  minHeight of this stack + item 2 of tTL,item 2 of tML)  \
> into item 2 of tML
> set the rect of  this stack to tTL,tML
> end mouseMove
>
> and this in your stack  script...
>
> on resizeStack
> set the bottomRight of btn "resizeMe"  to the bottomRight of this card
> end resizeStack

Best Regards from Paris,

Eric Chatonet.
----------------------------------------------------------------
So Smart Software

For institutions, companies and associations
Built-to-order applications: management, multimedia, internet, etc.
Windows, Mac OS and Linux... With the French touch

Free plugins and tutorials on my website
----------------------------------------------------------------
Web site        http://www.sosmartsoftware.com/
Email        eric.chatonet at sosmartsoftware.com/
Phone        33 (0)1 43 31 77 62
Mobile        33 (0)6 20 74 50 86
----------------------------------------------------------------




More information about the use-livecode mailing list