[lazarus] Pixels, pixels and pixels
Mattias Gaertner
nc-gaertnma at netcologne.de
Mon Feb 26 18:12:13 EST 2001
Hi Luis,
The bug in unidad1.pp is that you can not use the canvas in the form
constructor.
Add a "procedure Paint; override;" to THello and move the painting code to
this procedure. Then you will get your red line.
Mattias
On 2001.02.26 20:28:10 +0100 Luis R. Hilario wrote:
> This mail has two programs (three archives): pixel.pp and unidad1.pp are
> hello.pp modified
> pixel1.pp is scribble.pp modified to draw lines.
>
> The first program does not work:
> [TCustomForm.Create] Resource 'THELLO' not found
> This is for information purposes only. This is not critical at this
> time.
> An unhandled exception occurred at 0x080731B6 :
> Access violation
> 0x080731B6 TCUSTOMFORM__GETCANVAS, line 729 of
> ./include/customform.inc
> 0x00000001
> 0x080C4D44 main, line 13 of lcllinux.pp
>
> The example that is in the program testall.pp yes works.
>
> The second I created it to see as that of the pixels in GTK works,
> but I do not see that the function "gdk_draw_point()" is used in
> Lazarus.
More information about the Lazarus
mailing list