Recent

Author Topic: drawin methods on lazarus  (Read 7514 times)

Dhouard

  • Guest
drawin methods on lazarus
« on: December 24, 2003, 04:32:11 pm »
Hi, I'm new on lazarus programming thought I followed the project for a long time.

My problem is that I don't know how to call a method of an object. I try to draw an ellipse on a drawing area and keyed something like this.

X:=100;
Y:=100;
Radius:=50;
darea.fillellipse(X,Y,Radius);

Where darea is a drawing area on my main form. I have an "Illegal call" when I compile.

I don't know how to call methods on lazarus, even if there are methods defined. ¿Is there some tutorial about lazarus?. I have several about fpc but seems to be for text or console only.

Thanks.
Dhouard.

Anonymous

  • Guest
drawin methods on lazarus
« Reply #1 on: December 26, 2003, 02:13:23 pm »
Try drawing on the canvas of the form -

canvas.fillellipse(X,Y,Radius)

 

TinyPortal © 2005-2018