home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cs.utexas.edu!sun-barr!ames!data.nas.nasa.gov!taligent!apple!city-lights.apple.com!user
- From: mattd@apple.com (Matt Deatherage)
- Newsgroups: comp.sys.apple2
- Subject: Re: Window Managing Help
- Message-ID: <mattd-240892162320@city-lights.apple.com>
- Date: 24 Aug 92 23:24:45 GMT
- References: <1992Aug21.025859.29356@news.iastate.edu>
- Sender: usenet@Apple.COM
- Followup-To: comp.sys.apple2
- Organization: Developer Technical Support, Apple Computer, Inc.
- Lines: 29
-
- In article <1992Aug21.025859.29356@news.iastate.edu>, irsman@iastate.edu
- (Ian Schmidt) wrote:
- >
- > if the user clicks in the window (changing
- > the position of the selection cursor) while an update event is pending, Bad
- > Things happen (ie, I redraw the cursor, but if its old position isn't part of
- > the update region I end up with two cursors [not mouse cursors!] in the window,
- > which is obviously messy). Does anyone know of an easy (or even not-so-easy:) way around this?
- >
- > _IanSchmidt(oINet+irsman@iastate.edu,oBITNET+twbv4@isuvax,$C000)
-
- Yes -- don't draw in your window outside of your window's update routine.
-
- If you move the cursor from one place to another, you should invalidate the
- place where the cursor used to be, and invalidate the place where it should
- be. When you get your next update event, your redraw routine should know
- where the cursor's supposed to be now and draw things correctly.
-
- If you want to draw in your window outside of your update routines, make
- sure you don't wind up drawing something that your update routine will
- draw differently, and make sure you set up the Window Manager environment
- properly.
-
- ============================================================================
- Matt Deatherage, Developer Support Center, Apple Computer, Inc.
- Personal mail only -- please POST technical questions, questions about
- Apple and its policies, where to find documents and related inquiries.
- The opinions I express don't represent Apple, which makes us both happy.
- ============================================================================
-