home *** CD-ROM | disk | FTP | other *** search
- Path: pravda.aa.msen.com!not-for-mail
- From: crandall@mail.msen.com (Chad Randall)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: ClipRegions with MUI?
- Date: 1 Feb 1996 13:29:47 GMT
- Organization: Msen, Inc. -- Ann Arbor, MI.
- Message-ID: <4eqf8b$m13@pravda.aa.msen.com>
- References: <4enqca$26re@columba.udac.uu.se>
- NNTP-Posting-Host: conch.aa.msen.com
- X-Newsreader: TIN [UNIX 1.3 950824BETA PL0]
-
- Kristofer Maad (m93kma@sabik.tdb.uu.se) wrote:
- : Hi all...
- :
- : I'm writing a B-Spline editor class for MUI, and I am trying to make
- : the rendering clip against the object borders. In the mDraw() routine,
- : I make a new region with NewRegion() and add a rectangle to it with
- : OrRectRegion(), and then I do a InstallClipRegion(), but then the
- : computer hangs everytime - what's wrong!!? Am I not allowed to install
- : clip regions at any time?
- :
- : I know there's an example of clipping in the RKRMs, and I have looked
- : at the C source, but I can't see what's wrong with my code.
- :
- : By the way, I use AmigaE v3.2 registered (and yes, I think I know how
- : to program in E).
- :
- : If anybody has something on this, please...! Everything else (well
- : nearly, anyway) works perfectly now.
- :
-
- You writing an object that is called between BeginRefresh/EndRefresh?
- (gadgets, images attached to gadgets, etc)
-
- Page 721 of the RKM:Libs explains why not to do this!
-
-
- Unfortunatly, I'm not sure how to implement the solution when inside
- a gadget/image class... You need a way to check if the window you
- are rendering in is inside a BeginRefresh/EndRefresh pair...
- good luck!
-
- -A fellow E programmer,
- crandall@msen.com
-