Thanks Jack,
this works and I can see how to use this, but that leaves the
question why this does not work:
Dim aCanvas as Canvas
aCanvas = new Canvas1
aCanvas.Top = 120
aCanvas.graphics.DrawString "Hello", 10, 10 // or whatever
As you can see I just added the line you put in the paint event to
the button. So why can I not talk to my new object from the button
code ?
TIA
Bart
I'm sure that you've given your offscreen Canvas1 an index, say 0,
so that it can be cloned. In the button put:
Dim aCanvas as Canvas
aCanvas = new Canvas1
aCanvas.Top = 120
Then in the Paint event of Canvas1 put:
g.DrawString "Hello", 10, 10 // or whatever
Note that in your Paint event there is an index parameter, so if
you make additional clones with different strings you can put a
Select Case based on index.
Best,
Jack
_______________________________________________
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>
_______________________________________________
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>