Search code examples
rotationresizelivecode

Rotation and resizing in LiveCode


1) How can I rotate fields, buttons to be able to write a text from up to down.

2) I have a stack. Its width is 1622 and height is 588. How could I resize the stack to A4 with saving positions of my objects? My goal is to print it out in this size.

Thanks so much in advance for your help.


Solution

  • 1) Text rotation (rotation of fields and buttons) is not supported in LiveCode. Some developers have simulated this by taking a snapshot of the object, hiding it, then rotating the snapshot. See the dictionary for import snapshot.

    import snapshot from field "foo" with effects
    set the name of it to "fooimage"
    rotate image "fooimage" by -90