Path: utzoo!attcan!uunet!lll-winken!lll-tis!ames!husc6!babbage!kochhar From: kochhar@babbage.harvard.edu (Sandeep Kochhar) Newsgroups: comp.windows.x Subject: Re: Problems: viewports and scrolling Message-ID: <822@husc6.harvard.edu> Date: 13 Dec 88 22:38:45 GMT References: <600@metasoft.UUCP> <8812081720.AA02419@LYRE.MIT.EDU> <778@laura.UUCP> Sender: news@husc6.harvard.edu Reply-To: kochhar@endor.UUCP (Sandeep Kochhar) Organization: Aiken Computation Lab Harvard, Cambridge, MA Lines: 27 In article <778@laura.UUCP> lange@exunido.UUCP (Rainer Lange) writes: > >Hi Xperts, >we 've got a problem concerning viewport-widgets. >We installed a simple widget as the child of a viewport >in order to use the viewports capabilities of scrolling. >Using Xlib-functions we draw some stuff into the window >of the simple widget. Up to this point R3 operates fine >(as Xpected). > >Any movement of the viewports scrollbars actually scrolls >the contents of the simple widget, but scrolling back does >no update of the former invisible (since scrolled) contents. > >Any suggestions ? Thanx in advance Lutz & Rainer I think you need to use the Expose events generated via the scrolling process to redraw portions of the child widget. An alternative is to set the BackingStore of the window of the child widget to Always. However, the second assumes that the server provides backing store. Since the current protocol allows the servers to throw away backing stores at any time and generate expose events, you should use both method together. thanks. sandeep kochhar email: kochhar@harvard.harvard.edu