realbasic-nug
[Top] [All Lists]

Re: DrawInto not working again?

To: REALbasic Network Users Group <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: DrawInto not working again?
From: Joel Rosenblum <pyropostal at mac dot com>
Date: Sun, 9 Dec 2001 21:04:43 -0500
My canvas subclass has a property called backdrop (a picture)

um... I'm not sure but it seems a bit dangerous to be adding a backdrop property, since RB already has a backdrop property for the canvas.

 and parent (a
window). The code I'm using is as follows:

backdrop = newPicture( width, height, screen( 0 ).depth )
parent.drawInto backdrop.graphics, -left, -height

However, all I'm getting in Classic or in Mac OS X is plain white.

OK, well if changing the name doesn't help, you must remember that in the pain event of the canvas, you have to draw backdrop to g (NOT to graphics, they are different when using DrawInto!).

If you actually meant that you are using the built-in backdrop property and assuming it will be drawn, then I'd suggest doing the drawing of the backdrop yourself.



<Prev in Thread] Current Thread [Next in Thread>