home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / windows / openloo / 3772 < prev    next >
Encoding:
Internet Message Format  |  1992-09-09  |  1.3 KB

  1. Path: sparky!uunet!cs.utexas.edu!sun-barr!decwrl!csus.edu!csusac!unify!openlook!openlook-request
  2. Message-ID: <jlpebg@openlook.Unify.Com>
  3. Newsgroups: comp.windows.open-look
  4. Distribution: world
  5. Date: Wed, 9 Sep 92 09:32:40 EDT
  6. From: fgreco@fis1026.shearson.com (Frank Greco)
  7. Sender: news@Unify.Com
  8. Subject: Re: Mainting view on canvas resize
  9. Lines: 22
  10.  
  11. > Can anyone tell me how to reposition the current center
  12. > of a canvas paint window (by changing SCROLLBAR_VIEW_START i think).
  13. > I am having difficulty with the relationship between the various
  14. > SCROLLBAR_* attributes, and the portion of the paint window
  15. > currently visible. When the user changes the size of the paint window
  16. > i wish to recenter it around the current center, so the currently
  17. > visible objects remain visible. Anyone ?
  18.  
  19.     See WIN_BIT_GRAVITY (or CANVAS_FIXED_IMAGE).
  20.  
  21. > Also, how can I ignore the repaint events generated by the resize ? They
  22. > are generated for the old canvas size, and thus are for the wrong
  23. > areas. I would prefer to ignore them all until all resizing, repositioning
  24. > of scrollbars, etc. is completed, then just repaint the whole paint window.
  25.  
  26.     This is logic you have to impart by writing your own resize 
  27.     (or even repaint) proc.  You could look up CANVAS_RETAINED for
  28.     *possible* performance increases first...
  29.  
  30.     Frank G.
  31. =-=-=-=-=-=-=-=-=-=
  32.  
  33.