home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!walter!qualcom.qualcomm.com!NewsWatcher!user
- From: jpurlia@qualcomm.com (John Purlia)
- Subject: LSize Strikes (Not Once But Twice)
- Message-ID: <jpurlia-191192105158@129.46.5.45>
- Followup-To: comp.sys.mac.programmer
- Sender: news@qualcomm.com
- Nntp-Posting-Host: 129.46.5.45
- Organization: Qualcomm, Inc.
- Date: Thu, 19 Nov 1992 19:04:44 GMT
- Lines: 26
-
- Lsize... My, isn't this trap annoying!
-
- I've created a list containing both horizontal and vertical scroll bars
- that fit flush against the right and bottom borders of a window. When the
- window is resized I invalidate and erase the old scroll bars, then call a
- routine shich does the resizing for this particular window with a call to
- LSize. LSize is nice enough to draw the scroll bars for me (thank you, Mr.
- List Manager), however, when the window is resized such that the new width
- is greater than the old and the new height is less than the old
- (effectively dragging the grow icon up and to the right), the region along
- the horizontal scroll bar which was previously occupied by the rectangle
- enclosing the grow icon is NOT updated!!! Remember, I invalidated this
- rectangle immediately before resizing the list via LSize...
-
- This behavior does not happen along the vertical scroll bar when the resize
- is in the opposite direction.
-
- What gives????
-
- Sure, I could just invalidate the area occupied by the old grow Rect (which
- I'll probaly do), but something just seems wrong with LSize here!
-
- ...........................................................................
- John Purlia : My brain; not my company's brain. My brain says...
- jpurlia@qualcomm.com : "The Toolbox giveth, and the Tech Notes taketh away"
- ...........................................................................
-