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