Graeme Geldenhuys wrote:
> Hi,
> 
> I am creating a custom component and need to draw Arc's and Ellipses.
> I place the custom component on the form and make it square (H:150, W:150).
> I then found that drawing the Arc's and Ellipses are off to the right.
> I then added debug code to my component, to print the components
> Canvas.Width property and it shows 316 instead of the expected 150!
> The 316 is my Form's width and not the components width.

A canvas has infinite size. It's just clipped and translated into a
certain window. This window (or bitmap) has a certain size, so when
querying the canvas you get the size of that. It's normal behaviour.

Micha

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to