Stack height won't stay locked

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

Mistfall
Posts: 23
Joined: Tue Dec 30, 2008 1:26 pm

Re: Stack height won't stay locked

Post by Mistfall »

Oh phooey. I made a onPreOpenStack handler for my mainstack that reset the windowBoundingRect to give me another 30 pixels.

It made no difference. The stacks still open at 983 px height when I set them to 1024.

Sigh.
Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Stack height won't stay locked

Post by Simon »

Hi Mistfall,
When I had the problem with my stack resizing it didn't really bother me that much. Once you save it as a standalone it does retain the height you want. It's just a pain to have to reset while working in the IDE.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7423
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Stack height won't stay locked

Post by jacque »

I downloaded your stack, set the height to 1024, saved it, and chose "Close and remove from memory" in the File menu. When I reopened it, it was still 1024.

My windowBoundingRect is 0,74,2491,1440. What did you set yours to? Try setting it to the screenrect.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
Mistfall
Posts: 23
Joined: Tue Dec 30, 2008 1:26 pm

Re: Stack height won't stay locked

Post by Mistfall »

Hmmm.

I set the windowBoundingRect to 91,74,1680,1046.

I'll try setting it to the screenRect. Thanks!
Mistfall
Posts: 23
Joined: Tue Dec 30, 2008 1:26 pm

Re: Stack height won't stay locked

Post by Mistfall »

on preOpenStack I set the windowBoundingRect to 0,0,1680,1050, which is the screenRect.

Closed & Removed from memory. When reopened, the height was back to 938.

I checked the windowBoundingRect in the message box just to be sure; it was 0,0,1680,1050.


I'm stumped.... I'll have to see what happens on the iPad. Since it's working fine for other people it must be idiosyncrasy of my machine.

Thanks for all of your help, everyone!
jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7423
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Stack height won't stay locked

Post by jacque »

You won't have any trouble on an i-thing, all cards are automatically sized to the screen and you can't change that even if you want to.

I'm mystified why your stack is changing size on the desktop though. Do you have a resizestack handler in there? The example you uploaded has almost no scripts, so I'm assuming there's more to it than is in there. Also check any backscripts or stacks in use, they may be resizing something.

BTW, the one script I do see in there calculates how to loop back to the first card when a "next" button is clicked on the last card. You don't really need to do that, LiveCode will loop around the stack in both directions automatically.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
Post Reply