home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / mac / programm / 18661 < prev    next >
Encoding:
Text File  |  1992-11-19  |  1.8 KB  |  39 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!walter!qualcom.qualcomm.com!NewsWatcher!user
  3. From: jpurlia@qualcomm.com (John Purlia)
  4. Subject: LSize Strikes (Not Once But Twice)
  5. Message-ID: <jpurlia-191192105158@129.46.5.45>
  6. Followup-To: comp.sys.mac.programmer
  7. Sender: news@qualcomm.com
  8. Nntp-Posting-Host: 129.46.5.45
  9. Organization: Qualcomm, Inc.
  10. Date: Thu, 19 Nov 1992 19:04:44 GMT
  11. Lines: 26
  12.  
  13. Lsize... My, isn't this trap annoying!
  14.  
  15. I've created a list containing both horizontal and vertical scroll bars
  16. that fit flush against the right and bottom borders of a window.  When the
  17. window is resized I invalidate and erase the old scroll bars, then call a
  18. routine shich does the resizing for this particular window with a call to
  19. LSize.  LSize is nice enough to draw the scroll bars for me (thank you, Mr.
  20. List Manager), however, when the window is resized such that the new width
  21. is greater than the old and the new height is less than the old
  22. (effectively dragging the grow icon up and to the right), the region along
  23. the horizontal scroll bar which was previously occupied by the rectangle
  24. enclosing the grow icon is NOT updated!!!  Remember, I invalidated this
  25. rectangle immediately before resizing the list via LSize...
  26.  
  27. This behavior does not happen along the vertical scroll bar when the resize
  28. is in the opposite direction.
  29.  
  30. What gives????
  31.  
  32. Sure, I could just invalidate the area occupied by the old grow Rect (which
  33. I'll probaly do), but something just seems wrong with LSize here!
  34.  
  35. ...........................................................................
  36. John Purlia          : My brain; not my company's brain.  My brain says...
  37. jpurlia@qualcomm.com : "The Toolbox giveth, and the Tech Notes taketh away"
  38. ...........................................................................
  39.