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

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!convex!darwin.sura.net!nih-csl.dcrt.nih.gov!FAXCSL!FIXER
  3. From: fixer@faxcsl.dcrt.nih.gov (Chris Spiral Catfish Tate)
  4. Subject: Re: SpInsideMacintosh & wierd window
  5. Message-ID: <1992Nov17.170406.1126@alw.nih.gov>
  6. Sender: postman@alw.nih.gov (AMDS Postmaster)
  7. Reply-To: fixer@faxcsl.dcrt.nih.gov
  8. Organization: Computer Systems Laboratory, DCRT, NIH
  9. References: <ALESKINE.92Nov16220557@cardhu.cs.hut.fi>
  10. Distribution: comp.sys.mac.programmer
  11. Date: Tue, 17 Nov 1992 17:04:06 GMT
  12. Lines: 29
  13.  
  14. In article <ALESKINE.92Nov16220557@cardhu.cs.hut.fi>, aleskine@cs.hut.fi (Arto Leskinen) writes:
  15. >Is SpInside Macintosh available on ftp?
  16. >
  17. >I had problems that my srollbars were shorter than window, the line was still
  18. >drawn all the way trough window. I tried to set clip region smaller but still
  19. >( before I use DrawGrow())
  20. >something draws those dam lines. What's worse, if I run my window under
  21. >Think C debugger, the clipping works, but something eases my drawings off.
  22. >If I run separate program, my drawings will stay, but clipping does not work.
  23. >When window is drawn, the lines next to scroll bars are there. If I resize
  24. >the window, sometimes the lines disappear, somethimes the old line parts
  25. >stay on window and new ones will be drawn??
  26.  
  27. DrawGrowIcon() is what draws those lines.  You need to adjust the clipping
  28. of the window immediately before that call, and then put it back when you've
  29. drawn the grow box.
  30.  
  31. An alternative is to use a small icon of your own in the shape of the grow
  32. icon, and use CopyBits() to put it on the screen directly, and never call
  33. DrawGrowIcon() at all.  This is a good solution if you have something in
  34. your window that doesn't use scroll bars, but is still resizable (such as a
  35. picture that can be scaled to arbitrary sizes).  If you take this approach,
  36. you'll have to explicitly draw any line segments yourself if you want them.
  37.  
  38. ------------------------------------------------------------------------------
  39. Christopher Tate             | The Leadfoot Collection, Continued:
  40. Management System Designers  |        * Red Barchetta (Rush)
  41.                              |        * Old Time Rock And Roll (Bob Seeger)
  42. fixer@faxcsl.dcrt.nih.gov    | Because driving fast is a cathartic experience.
  43.