home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!gatech!enterpoop.mit.edu!ira.uka.de!math.fu-berlin.de!news.netmbx.de!Germany.EU.net!mcsun!uknet!reading!adp
- From: adp@csg.cs.reading.ac.uk (Andrew Pollard)
- Newsgroups: comp.windows.open-look
- Subject: Suppressing redraws with scrollbars
- Summary: Can't seem to do it right
- Keywords: Scrollbars, Redrawing
- Message-ID: <adp.726508036@reading>
- Date: 8 Jan 93 15:47:16 GMT
- Sender: news@csug.cs.reading.ac.uk
- Organization: University of Reading
- Lines: 28
- Nntp-Posting-Host: odin
-
- Hello World,
-
- I am writing a graphics display program using an Openwindows Canvas and
- scrollbars. I allow scaling of the image by scaling the X coordinates used
- for plotting (something like that anyway) and once scaled, I xv_set the
- scrollbar start and lengths so that the viewable area of the screen stays
- the same... the problem is, I do 4 xv_sets on the scrollbars, and after each
- one the image in the window shifts with respect to the new scrollbar position.
- Consequently, after a scale the image moves around before it 'settles' down
- to the proper view. Is there anyway of queueing up changes to the scrollbars
- so that they can all be applied simultaneously? (or some equivalent method).
-
- The way I am doing it now involves WIN_MAPping the paint window to FALSE,
- updating the scrollbars, and the WIN_MAPping the paint window to TRUE (It works
- apart from a slight screen flash - I can put up with it - just!)
-
- Any help will be appreciated.. Please mail any responses as I'm not an avid
- reader of news!
-
- Thanks
- Andrew
-
- -
- --
- | Andrew Pollard, Dept. of | JANET adp@uk.ac.rdg.cs.csg |
- | Comp. Science, Reading | INTERNET adp%csg.cs.rdg.uk.ac@nsfnet-relay.ac.uk |
- | Univ., Reading, RG6 2AX, | |
- | England. [0734 751822] | "You lie,and yo breath stank!"-Infectious Grooves |
-