Wednesday, 12 September 2012

Resizable VID

VID not seems to resizable, but it's false, the trick is to know how to make resizable it.
Just use resize-vid.r script, download it from: http://www.rebol.it/romano/resize-vid.r
Then you need:
  • add "do %resize-vid" at the beginning of your script
  • use the magic word "auto-resize" before your layouts
Moreover you can choose 
resize-xy (default) resize the face in both axes
resize-x resize only in the x axis
resize-y resize only in the y axis
resize-none do not resize

Here an example:
Rebol []
do %resize-vid.r
view/options auto-resize layout [image logo.gif ] [resize]



Look what I did to the image with resize.

You'll find more information on: http://www.rebol.it/romano/resize-vid-doc.html

No comments:

Post a Comment