Upgrade to Lion on 15 inch laptop pro forces resize of stacks

william humphrey bill at bluewatermaritime.com
Sat Jun 16 14:27:35 EDT 2012


I think that my problems may have had a lot to do with that I also work on
a large monitor part of the time and on the laptop alone part of the time.
I will remove the bug report I guess since all the excellent sleuthing
proved somehow that my problem was operator error. Anyway, I redesigned my
main stack to be smaller, only 736 pixels high. Now that I think about it
maybe I'll change my bug report to be a suggestion to the runtime people
that they have suggested sizes for stacks depending on the size of the
monitor and the operating system people will be using. This would be easy
for MacOS and Apple hardware but a little harder for the Window operating
system folks but just as important as I don't want users with my software
on a window's laptop getting a forced resized version of it that has the
bottom cut-off. If you know how to use geometry manager and design
everything to be resizable then you don't have this problem of course. I
have not been able to figure out how to use geometry manager and for my
resizable stacks I'm just writing a bunch of code to move things around.
Besides LiveCode used to have a thing which was called: "database query
builder" and I made the mistake of using that and maybe the same thing will
happen to geometry manager (Livecode will drop it as being too difficult to
make useable).

Perhaps the 736 pixel high suggestion should be only when you set the stack
to "not resizable"? I think I'm dreaming here though because I notice that
as a rule LiveCode never makes any user interface suggestions. In order to
make my windows look MacOS standard I had to make tops and bottoms in
photoshop and fit them in as LiveCode only offered "metal" which is a
couple of operating systems versions back.

And thank you everyone for helping. This user list has got to be one of the
single greatest things about LiveCode.

Bill

On Sat, Jun 16, 2012 at 12:57 PM, Peter Haworth <pete at lcsql.com> wrote:

> I get similar results on my iMac. However that doesn"t help William.
>
> On the face of it, he upgraded to Lion, changed nothing in his lc app and
> nothing in his osx config, yet his stack size changed. I don"t know if lc
> or osx caused this but we still haven't figured out why it happened.
>
> Maybe it"s peculiar to 15" laptops?
> On Jun 16, 2012 7:50 AM, "Kay C Lan" <lan.kc.macmail at gmail.com> wrote:
>
> > William,
> >
> > This is very easy to achieve, in the card script, on openCard you can
> > simply,
> >
> > lock screen
> > set the height of stack "my stack" to 3456
> > set the width of stack "my stack" to 2345
> >
> > This will override the automatic resizing that goes on. This does have
> it's
> > problems though as it may push the menubar out of view, making it
> > impossible to move the stack. This can be rectified by using the rect of
> > the stack and basing all sizes on the top,left of the rect. Here is an
> > example
> >
> > If you created the stack "Untitled 1"  from my last post, you can add
> this
> > script to the card:
> >
> > on openCard
> >   lock screen
> >   --you can do this
> >   --set the height of stack "Untitled 1" to 3000
> >
> >   --this is what LC squished the stack to
> >   put the height of stack "Untitled 1" into msg
> >   put the rect of stack "Untitled 1" into tStartSize
> >   put item 4 of the screenRect into tScreenHt
> >  --simulate Dock at bottom with Hide set to On
> >   subtract 88 from tScreenHt
> >   if ((item 4 of tStartSize - item 2 of tStartSize) < tScreenHt) then
> >      put (item 2 of tStartSize  + tScreenHt) into item 4 of tStartSize
> >      set the rect of stack "Untitled 1" to tStartSize
> >   end if
> >   --check that the Stack height has changed
> >   put cr & the height of stack "Untitled 1" after msg
> > end openCard
> >
> > What this will show, if you press the button to make the stack HUGE, then
> > Save and close the stack, when you reopen it, in the msg box it will show
> > the Height LC first squished the stack to, and then the new size you
> forced
> > it to grow to.
> >
> > I used 88 because that's what I've discovered is the smallest number when
> > the Dock is located at the bottom, so this simulates having the Dock at
> the
> > bottom, set to Hide, even though the User's setting may be different.
> >
> > You can easily test for any size you want and then set any width/height
> > size you feel necessary.
> >
> > HTH
> >
> > On Fri, Jun 15, 2012 at 8:17 PM, william humphrey <
> > bill at bluewatermaritime.com> wrote:
> >
> > > Thanks for help with confirmation. I was hoping for a way to tell
> > LiveCode
> > > that the stack size I set was "locked" and not to change it regardless
> of
> > > the size of the dock or the size of the screen that the stack is on. If
> > > that is not possible than I wish that there were "suggested" stack
> sizes
> > in
> > > the size & position tab of stack inspector that would tell poor
> > > unsuspecting programmers to keep their stacks under 736 pixels in
> height.
> > >
> > > Are there similar problems when working in Window's environment?
> > > _______________________________________________
> > > use-livecode mailing list
> > > use-livecode at lists.runrev.com
> > > Please visit this url to subscribe, unsubscribe and manage your
> > > subscription preferences:
> > > http://lists.runrev.com/mailman/listinfo/use-livecode
> > >
> > _______________________________________________
> > use-livecode mailing list
> > use-livecode at lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
> >
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



-- 
http://www.bluewatermaritime.com



More information about the use-livecode mailing list