On 10.6.2006, at 01:39, Ed Lee wrote:

Folks:

I'm trying to use a graphics object with a canvas, and it's causing my app to crash without any explanation.

Try this:

1. Create a new project.  In Window1, add a canvas (Canvas1).
2. In the code for Window1, add a property tempGraphic As Graphic.
3. In the code for the Open event handler, add the following:

  tempGraphic = new Graphics
  tempGraphic.DrawRect(1,1,20,40)

4. In the code for Canvas1.Paint, add one line:

        g = tempGraphic


You cannot create instance of Graphics, to create off screen buffer then you create a instance of a picture and the get the Graphics from the Picture.


--
______________________________________________________________________
Björn Eiríksson                        [EMAIL PROTECTED]
Einhugur Software
http://www.einhugur.com/
______________________________________________________________________
Einhugur Software has sold its products in 53 countries world wide.
______________________________________________________________________
For support:                           [EMAIL PROTECTED]
To post on the maillist:               [EMAIL PROTECTED]


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to