i'd coded per your tips but got runtime exception error as :-
the exe has raised exception class EInvalidGraphicOperation with message 'Invalid canvas state request'.

so what do you think is happening ???

ciao


----- Original Message ----- From: "Eddie Shipman" <[EMAIL PROTECTED]>
To: "Borland's Delphi Discussion List" <delphi@elists.org>
Sent: Monday, June 20, 2005 10:26 AM
Subject: Re: how to draw onto Panel's canvas


You have to expose the panel's canvas, it is a protected property:

type
 tmypanel = class(TPanel)
 end;

TMyPanel(Form1.Panel1).Bitmap.Canvas.Ellipse( x, y, ellipse_size,
ellipse_size);



--- websmith <[EMAIL PROTECTED]> wrote:

allo,

as all the properties of drawing is there in the Panel, but runtime error
occurred if drawing is applied. see code as follows :-

Form1.Panel1.Bitmap.Canvas.Ellipse( x, y, ellipse_size, ellipse_size);

what's the advise.

thanks.


_______________________________________________
Delphi mailing list -> Delphi@elists.org
http://www.elists.org/mailman/listinfo/delphi



__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

_______________________________________________
Delphi mailing list -> Delphi@elists.org
http://www.elists.org/mailman/listinfo/delphi



_______________________________________________
Delphi mailing list -> Delphi@elists.org
http://www.elists.org/mailman/listinfo/delphi

Reply via email to