home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / lang / forth / 2968 < prev    next >
Encoding:
Internet Message Format  |  1992-08-17  |  1.7 KB

  1. Path: sparky!uunet!gatech!pitt!willett!ForthNet
  2. From: ForthNet@willett.pgh.pa.us (ForthNet articles from GEnie)
  3. Newsgroups: comp.lang.forth
  4. Subject: Mops [Bug fix]
  5. Message-ID: <3991.UUL1.3#5129@willett.pgh.pa.us>
  6. Date: 17 Aug 92 12:15:16 GMT
  7. Organization: EIEI-U
  8. Lines: 39
  9.  
  10. Category 7,  Topic 40
  11. Message 24        Mon Aug 17, 1992
  12. M.HORE [Mike]                at 05:28 EDT
  13.  
  14.   Hi all Mops users:
  15.  
  16. Doug Hoffman and I have found and fixed yet another minor bug in the Scroller
  17. class.
  18.  
  19. Method GETRECT: should now be:
  20.  
  21.  :m GETRECT:
  22.     get: viewRect  put: tempRect
  23.     get: vscroll?  get: hscroll?  or
  24.     if  16  nil?: ^myView +  dup  stretch: tempRect  then
  25.     get: tempRect  ;m
  26.  
  27. This will correct some anomalies when Scrollers appear inside Scrollers.  Not
  28. the most common occurrence, but it can happen.
  29.  
  30. For those who are interested (if you're not, you can stop reading now!), the
  31. problem was that getrect: needs to return not the viewrect itself, but the
  32. larger rect which *includes* the scroll bars.  The viewrect for Scrollers
  33. *excludes* the bars. It's a bit tricky.
  34.  
  35. getrect: is called on subviews to work out how big they are, so the bars need
  36. to be included; but the viewrect itself is used to set the clip area when
  37. drawing -- we don't want to draw over the bars.
  38.  
  39. So getrect: can't just return the viewrect for Scrollers -- it needs to return
  40. the bigger rect which includes the bars.  I'd originally forgotten this -- or
  41. more likely, never thought of it at all!!
  42.  
  43. Cheers,   Mike.
  44. -----
  45. This message came from GEnie via willett.  You *cannot* reply to the author
  46. using e-mail.  Please post a follow-up article, or use any instructions
  47. the author may have included (USMail addresses, telephone #, etc.).
  48. Report problems to: dwp@willett.pgh.pa.us
  49.