Forum > General

drawin methods on lazarus

(1/1)

Dhouard:
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:
Try drawing on the canvas of the form -

canvas.fillellipse(X,Y,Radius)

Navigation

[0] Message Index

Go to full version