Stack window/screen sizes

Björnke von Gierke bvg at mac.com
Tue Dec 21 07:52:38 EST 2010


Basically, you set the positions and sizes of all your objects in the 'resizestack' message (Look it up in the dictionary). Beware that you need to use the 'width' and 'height' of the card, or the parameters supplied to the message, not the 'rectangle' of the stack (because the stack rect is relative to the 'screenrect'). 
Additionally on 'opencard', or on 'startup', you set the rect of the stack to something that fits onto the screen.
People do expect you to keep their chosen window size between launches. If you save settings somewhere, you can simply save the rect of the stack there, and retrieve it from there again on 'openstack'.


On 21 Dec 2010, at 03:53, Peter Haworth wrote:

> I just installed my app on a computer other than the one it was developed on and breathed a sigh of relief when everything still worked... EXCEPT that the stack window sizes do not quite fit vertically on the new computer.
> 
> I think this is because the screen resolution on the developing computer is 1680x1050 and on the computer I installed it on, it's 1280x800 (and there is no 1680x1050 res available). How do I deal with this? Is this what the Geometry manager is for and if so, is there good tutorial out there for it?
> 
> Thanks,
> 
> Pete Haworth
> 
> 
> 
> 
> 
> 
> 
> 
> 
> _______________________________________________
> 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





More information about the use-livecode mailing list