[lazarus] TCanvas

Shane Miller SMiller1 at stvgb.org
Wed Jul 21 10:35:48 EDT 1999


OK, I changed my fillrect procedure to do the following, but it still doesn't show up!....

Procedure TgtkObject.DrawFillrect(Child,Data : Pointer);
var
fWindoew : pgdkWindow;
gc: pgdkGC;
R : TRect;
begin
fWindow := pgtkEidget(Child)^.Window;

gc := gdk_gc_new(pgdkWindow(fWindow));
gdk_draw_rectangle(fWindow,gc,1,TRect(data^).Left,TRect(data^).Top,TRect(data^).Right,TRect(data^).Bottom);

gtk_widget_draw(child,data);
end;


Any thoughts?
Shane







More information about the Lazarus mailing list