Graeme Geldenhuys wrote:
> I am no graphics guru and that makes no sence!  :-)

Well, it's the windows drawing model, so that may have to do with it ;-).

> The GraphicControl has a private FCanvas, and that is what I wanted to

But the canvas isn't "owned" by the graphiccontrol, but by its parent.

> query and expected it to be the size of the Control.  Now what would
> the reason be for auto assigning the Form's Canvas dimentions to the
> GraphicsControl's Canvas property (that's pretty much what is
> happening).  So now if I query the GraphicsControl's Canvas, I am
> actually getting the dimentions of the Form's Canvas.  Ummm.... very
> weird!

Canvas shouldn't have Width/Height (Delphi doesn't IIRC), but if you
query them in LCL you get the size of the owning control (= control
having a window handle = parent in case of graphiccontrol).

Micha

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

Reply via email to