Stack window/screen sizes
pete at mollysrevenge.com
Tue Dec 21 11:46:57 CST 2010
Thanks to all for the replies. It sounds like I'm faced with a huge
amount of work! Maybe I'm oversimplifying this but it sure would be
nice to able to specify by script "reduce/enlarge all the controls on
this card by x% horizontally and y% vertically".
I'm still unclear as to whether the Geometry manager can help with
this. I've never used it but the documentation seems to indicate that
it takes effect when the user resizes a window. Does it come into
play when the window size is changed by script? It seems that the
geometry manager works at the individual control level so the next
question in my mind is how to deal with all the controls hidden within
datagrids which I don't have access to.
I'm considering another approach to this. I asked a question on the
list a couple of days ago about how to get scroll bars on a stack
window and the answer was to group all the controls on the card
together and specify scroll bars for the group. In some cases that
would result in 3 or 4 levels of group nesting which is a pain to work
with in the IDE but could be an acceptable workaround for the user.
On Dec 21, 2010, at 4:52 AM, Björnke von Gierke wrote:
> 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
> 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?
>> Pete Haworth
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
More information about the use-livecode