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