Resizing Stack

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
warrenk
Posts: 110
Joined: Sun Sep 21, 2008 5:39 am

Resizing Stack

Post by warrenk » Thu Sep 16, 2010 2:59 am

I am trying to resize a text field when I resize a stack. Are there any good examples/tutorials on how to do this? I am not sure if I can just use the geometry property or have to program for this...or both. I have read the user manual and am really confused.

Thanks for any help!
Warren

Janschenkel
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 977
Joined: Sat Apr 08, 2006 7:47 am
Location: Aalst, Belgium
Contact:

Re: Resizing Stack

Post by Janschenkel » Thu Sep 16, 2010 6:01 am

Hi Warren,

Maybe these two blog posts of mine can help you write your own resizeStack and resizeControl handlers to move and resize things:
- BorderLayout example script http://blog.quartam.com/2010/07/borderl ... stack.html
- BorderLayout example - with resizing http://blog.quartam.com/2010/08/borderl ... izing.html

HTH,

Jan Schenkel.
Quartam Reports & PDF Library for LiveCode
www.quartam.com

shadowslash
Posts: 344
Joined: Tue Feb 24, 2009 6:14 pm
Location: Philippines
Contact:

Re: Resizing Stack

Post by shadowslash » Thu Sep 16, 2010 3:25 pm

warrenk wrote:I am trying to resize a text field when I resize a stack. Are there any good examples/tutorials on how to do this? I am not sure if I can just use the geometry property or have to program for this...or both. I have read the user manual and am really confused.

Thanks for any help!
Warren
Hmm I might not be right on this one but, yes, you can just use the Geometry Property. Image
In fact I made a video demo for you to see what I mean. You can view the video here: http://screencast.com/t/ZjgzNmU5Zm

If, however, you need to execute or add some scripts while resizing the stack, you can use the resizeStack message on the stack's script.
Image
Parañaque, Philippines
Image
Image

Post Reply

Return to “Getting Started with LiveCode - Experienced Developers”