home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / windows / openloo / 4992 < prev    next >
Encoding:
Internet Message Format  |  1993-01-08  |  1.8 KB

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