Method Drawstuff(g): Dim P As New FigureShape
make a figure in the canvas
g.DrawObject P
This is the actual call:
drawPrism me.graphics, val(TSides.text), 50, .2, me.index rem draws a polygon
(drawPrism, graphics, sides, size, rotation, canvas index)
it works only in the paint routine with g.DrawObject P in the DrawPrism method
I want to redraw this polygon in other methods using the drawPrism routine…but it only works in Paint.
[quote=206666:@Carl Gibson]This is the actual call:
drawPrism me.graphics, val(TSides.text), 50, .2, me.index rem draws a polygon
(drawPrism, graphics, sides, size, rotation, canvas index)
it works only in the paint routine with g.DrawObject P in the DrawPrism method
I want to redraw this polygon in other methods using the drawPrism routine…but it only works in Paint.[/quote]
You can also draw in the Backdrop graphics.
Create a picture the size of the canvas, make it the backdrop of the canvas, then you can draw to the graphics of the picture.
However, if you chose to do that, all drawing must take place there. Even paint must draw to