Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!uunet!ontek!eric From: eric@ontek.UUCP (Eric Hanson) Newsgroups: comp.windows.x Subject: Window sizes in X11R3 Keywords: X11R3 Window Message-ID: <890@ontek.UUCP> Date: 9 Jan 90 19:20:56 GMT Organization: Ontek Corporation, Laguna Hills, CA Lines: 33 I hate to interrupt the R4 discussion, but I've got an R3 question... I've created a "graphing" widget (essentially a Window with an extensive display routine) for my own work, which I use inside of a standard Xaw Viewport Widget. On a recent, very large, graph, I noticed the Viewport's scrollbars acting strangely as I scrolled away from (0,0). After a little debugging, I discovered that the graph widget's height exceeded 45,000 pixels -- I overshot the magic 32767 limit on short integers. A little research led to the following: 1) Widgets deal in "shorts." The x,y,width,height fields on the core structure use types Position and Dimension, which are defined as short and unsigned short in Intrinsic.h. 2) Windows use "int" for x,y,width,height, at least according to the Xlib procedure params and the Window Attribute structures. On my Sun 4, ints are 32-bit. Therefore, it would seem that X would allow a 2 billion x 2 billion sized window. And now for the questions... 1) Does this mean that the largest allow widget size is 32K? 2) What would happen if I changed Position & Dimension in Intrinsic.h to ints, and remade X? 3) Am I insane for wanting such big windows? Sorry if any of this has been hashed out before, but would those in the know please respond ASAP -- it's deadline time again!! Thanks in advance, Eric Hanson ...!uunet!ontek!eric Ontek Corporation Laguna Hills, CA