Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!clyde.concordia.ca!nstn.ns.ca!news.cs.indiana.edu!ux1.cso.uiuc.edu!csrd.uiuc.edu!sp31.csrd.uiuc.edu!davej From: davej@sp31.csrd.uiuc.edu (David J. Jablonowski) Newsgroups: comp.windows.x.motif Subject: Scrolled Window: Area Size Keywords: Scrolled Window Message-ID: <1991Feb19.213852.3289@csrd.uiuc.edu> Date: 19 Feb 91 21:38:52 GMT Sender: news@csrd.uiuc.edu (news) Reply-To: davej@sp31.csrd.uiuc.edu (David J. Jablonowski) Organization: Center for Supercomputing Research and Development Lines: 17 I have a Scrolled WIndow with a scrollingPolicy of AUTOMATIC and a scrollBarDisplayPolicy of AS_NEEDED. The work area of this Widget is a Drawing Area. What I need to do is to determine, at arbitrary times, the exact rectangular regtion of the Drawing Area that is visible thru the viewing area of the Scrolled Window. This means I need the width and height of this viewing area as well as the coordinates of the Drawing Area that appear. This is not for refreshing; I am well aware of the Expose Callbackbacks and the accumulation of Regions. Ii seems that I can get close by going thru a bunch of yoga involving getting the scrollbars, thier dimensions, their values, the size of the scrolled window itself ..., and doing some calculations. But it seems I still seems that I am missing some 'margins' or something. Is there a nice way to determine this info ?