Resize only page height issue

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
user#606
Posts: 217
Joined: Sun Jan 27, 2008 12:25 pm
Contact:

Resize only page height issue

Post by user#606 » Mon Oct 31, 2016 3:31 pm

It is some 3 years since I last used LC and I needed to update an existing stack to match the screen resolution vertically.
Using 9.1, I cannot find a way of limiting the width yet allowing the height to be altered. The horizontal setting out is fixed and resizing that is not acceptable. Only the height needs to change.
I appreciate I can resize the stack in development and tick don't resize, then compile (or whatever you call it), but I had hoped for something more refined.
What would you suggest?

MaxV
Posts: 1580
Joined: Tue May 28, 2013 2:20 pm
Contact:

Re: Resize only page height issue

Post by MaxV » Mon Oct 31, 2016 3:51 pm

First option (max 256 pixels):

Code: Select all

set the maxwidth of this stack to 256
Otherwise:

Code: Select all

on ResizeStack  newh, newW
   set the width of me  to 256 
   pass resizeStack
end ResizeStack
Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w

user#606
Posts: 217
Joined: Sun Jan 27, 2008 12:25 pm
Contact:

Re: Resize only page height issue

Post by user#606 » Mon Oct 31, 2016 4:21 pm

Hi MaxV,
That will do me very well, thank you very much.
A lot of detail has changed in LC and it will take me a while to pick it up again.
For this stack, it means I can move on and use it and learn on something new.
Thank you again.

Post Reply