Display a simple stack

Graham Samuel graham.samuel at wanadoo.fr
Sun Sep 12 12:59:54 EDT 2004

On Sun, 12 Sep 2004 10:55:49 -0500, Gordon Tillman <got at mindspring.com> wrote:

>Hi Ryno,
>On Sep 12, 2004, at 10:49, Ryno Swart wrote:
> > For my little School Yearbook project, I am developing a stack
> > measuring 800 x 600 pixels. When I tested it at the school though,
> > often the stack would not fit into the monitor display, particularly
> > frustrating as I then lose my set of buttons along the top edge of the
> > card, and parents would not be able to simply exit. It is a simple
> > matter for the user to reset the screen resolution, but many would not
> > know how (I am thinking of Windows here)
>I know that for the current bunch of applications that we are writing
>for our company, we have set 800 X 600 as the minimum monitor
>resolution.  But you have to remember that you do not have the full 600
>pixels height available, unless you take over the entire screen (which
>is usually considered to be bad behavior for an application, with the
>possible exception of games).
>If I remember correctly, we usually allow for about 40 pixels or so for
>the height of the task bar at the bottom, and so any windows we design
>we keep to a max height of about 560 pixels.  As far as the width, we
>usually use a max width of about 700 pixels.  That way if folks have a
>dock on the left or right side of the screen (Mac OS X), we allow space
>for that as well.

There is a way of calculating exactly how much screen 'real estate' (pixel 
width and height) is available for your own window, leaving room for 
toolbars, decorations etc. The method is different for Macs and PCs, but 
one routine can do them both. If you are interested I can post it here (as 
I've done before in fact).

As for putting stuff in the middle of the screen, you can do

  set the loc of this stack to the screenLoc

This is probably best done in a preOpenStack handler.




Graham Samuel / The Living Fossil Co. / UK & France  

More information about the use-livecode mailing list