Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!ukc!tcdcs!swift.cs.tcd.ie!cjmchale From: cjmchale@swift.cs.tcd.ie Newsgroups: comp.windows.x Subject: Re: the magic number 32637 in Athena form widget Message-ID: <7296.27348b25@swift.cs.tcd.ie> Date: 4 Nov 90 21:41:57 GMT References: <1990Oct31.223545.14828@sbcs.sunysb.edu> <1990Nov1.180217.10045@Solbourne.COM> Organization: Computer Science Department, Trinity College Dublin Lines: 28 In article , av@kielo.uta.fi (Arto V. Viitanen) writes: >>>>>> On 1 Nov 90 18:02:17 GMT, toml@ninja.Solbourne.COM (Tom LaStrange) said: > > Tom> Window dimensions are unsigned, but window coordinates are signed > Tom> numbers which means that the largest possible positive coordinate > Tom> will be 32637. It basically means you can create a much larger window > Tom> than you can effectively use. > > But why 32637 ? xcalc says 2 ^ 15 -1 is 32767 ? Perhaps the window has a parent which is 30 pixels bigger than it's child. If the parent won't go past 32767 and insists on being 30 pixels bigger than the child then the child can only get to be 32737 pixels high. Which window might be 30 pixels taller than your window? How about the "title bar" which your window manager might put on your application. Then again, I could be speaking rubbish, in which case someone will correct me. Ciaran. -- Ciaran McHale "An inappropiate joke for every occasion" Department of Computer Science, Trinity College, Dublin 2, Ireland. Telephone: +353-1-772941 ext 1538 FAX: +353-1-772204 Telex: 93782 TCD EI email: cjmchale@cs.tcd.ie or cjmchale%cs.tcd.ie@cunyvm.cuny.edu My opinions are.