Canvas of TForm not working on Linux

Issue #218 resolved
Koval created an issue

I have a simple code on ButtonClick event

form1.Canvas.Brush.Color:=clBlack;
form1.Canvas.FillRect(Rect(0,0,100,100));

But This Code do nothing;

When I try paste this code in OnPaint event, all works good;

I have trial CrossVCL and Linux MInt 19.3 Chinamon desktop.

Comments (1)

  1. Eugene Kryukov repo owner

    On mac & linux drawing to Form or Control canvas outside paint event impossible because of system limitation.

  2. Log in to comment