init canvas

Hi,
I want to draw a graphics my chart needs three canvas , one for graphic(data), two for rules (left and bottom of chart canvas) as margins.
I want to know how to initialize three canvas each one with it own data’s !

each one has its own properties, events, methods… (open, paint etc)
each canvas should take care of its own needs.

so either I do not understand your question… or you do not understand objects?

You also don’t necessarily need three canvases. You could use one and then use Graphics.Clip to isolate them when drawing.

[quote=337604:@Dave S]each one has its own properties, events, methods… (open, paint etc)
each canvas should take care of its own needs.

so either I do not understand your question… or you do not understand objects?[/quote]

This is the structure of the program :

The in the init method is coded the default setting of the cnvPlot

'Initialize default settings of the Canvas PBuffer = new Picture(CnvPlot.Width, CnvPlot.Height,32) PBuffer.Graphics.DrawRect(0,0,CnvPlot.Width, CnvPlot.Height)

I need to initialize also two other canvas.

How do i write on the margin with out a canvas object ?

just use offsets to draw starting inset from whatever edges you want margins on

I think you should consider what Greg O’Lone said. Put all the drawing in one canvas. It’s faster and foolproof.

Yes i found doc about clip, many thanks every body !
link text