Leaving room for the title bar
Graham Samuel
livfoss at blueyonder.co.uk
Sun Sep 21 12:17:01 EDT 2003
Well, I seem to be talking to myself, but this may interest some
people. Apologies if it's all in the dox somewhere and I've missed it
(wouldn't be the first time). I have managed to get hold of various
machines and I think the following figures are correct about the
amount of space in pixels taken up by the decorations in each case.
Obviously I don't have a more general solution which will work when
Microsoft or Apple change something. I have no Unix figures.
The following is best viewed in a monospaced font:
OS Platform SystemVersion Title Bar LeftSide RightSide Bottom
Windows 95 Win32 4.0 24 4 4 4
Windows 98 Win32 4.10 24 4 4 4
Windows XP Win32 NT 5.1 30 4 4 4
Mac OS 9 MacOS 9.2.2 22 6 7 6
Mac OS X MacOS 10.2.6 22 1 1 1
I'm hoping that these figures enable the developer to use the default
WindowBoundingRect to set a new, more restrictive WindowBoundingRect
to ensure a stack window just fills the available screen space.
Corrections and comments welcome
Graham
--
-------------------------------------------------------------------
Graham Samuel / The Living Fossil Co. / UK & France
More information about the use-livecode
mailing list