Re: Application pane size: determining at run time
Paolo Amoroso <[email protected]> Thu, 08 Jan 2004 20:31:45 +0100
| Newsgroups | gmane.lisp.clim |
|---|---|
| Organization | Paolo Amoroso - Milano, ITALY |
| Message-ID | <[email protected]> |
Robert STRANDH writes: > bounding-rectangle). But you can compute the bounding rectangle of > the region by using the function bounding-rectangle*. > > A better choice would be to use window-viewport which returns the > visible region of the application pane if it contained in a scroller > pane, and the sheet region otherwise. Consider an application pane that displays some graphics. Its size is initialized with the :WIDTH and :HEIGHT options, modulo window-manager dependent constraints. At run time the user can dynamically change the size of the application frame containing the pane, which in turn may change the pane's size (or just the visible region?). I would like the application-specific graphics to use all the space available to the pane. So, the pane's display function needs to know the current size in order to lay out the graphics. If I understand correctly, WINDOW-VIEWPORT may be used for this if the pane is contained in a scroller, SHEET-REGION + BOUNDING-RECTANGLE* otherwise. Or maybe the display function can use all the space it wants, and the scroller makes visible a possibly smaller part of the pane's graphics. Paolo -- Why Lisp? http://alu.cliki.net/RtL%20Highlight%20Film -- [To unsubscribe to this list send an email to "[email protected]" with the following text in the BODY of the message "unsubscribe clim"]