IDE hangs up

Eric Chatonet eric.chatonet at sosmartsoftware.com
Thu Jun 2 08:43:12 EDT 2005


Hi Jon,

Many hints ;-)
You call a handler and you write a function :-)
You use many properties but don'tell to Rev what is the object:

> set left of "image" to 8

set the left of img "Image" to 8
and so on...
Take heart!

Best regards from Paris,

Eric Chatonet.

Le 2 juin 05 à 14:35, Jon a écrit :

> on resizeStack
>  DoResizeStack
> end resizeStack

> function DoResizeStack
>  set left of "image" to 8
>  set top of "image" to 20
>  put width -16 into ww
>  put height - 32 into wh
>  put formattedwidth of "image" into fw
>  put formattedheight of "image" into fh
>  put fh / fw into iRatio
>  put h / w into wRatio
>  if iRatio > wRatio then
>    -- image is taller than space available: need empty space to  
> right of image
>    set height of "image" to h
>    put h / iRatio into w
>    set width of "image" to w
>  else
>    -- need space under image
>    set width of "image" to w
>    put w * iRatio into h
>    set height of "image" to h
>  end if
> end DoResizeStack

----------------------------------------------------------------
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

Plugins, tutorials and more on our 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