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