I am using a TPlotGrid because I want to try to put some lines in it. Look at this simple code:
procedure TForm1.Button1Click(Sender: TObject);
var a,b: TPointF;
begin
a.X := 0;
a.Y := 0;
b.X := 1;
b.Y := 5;
PlotGrid.Canvas.DrawLine(a,b,1);
end;
As you can see here I have the PlotGrid on Tab2 and the button on Tab1. Why isn't this code adding a line to the PlotGrid? A line should appear when I click on the button (going from (0;0) to (1;5)).
I am new with Canvas and in particular with the TPlotGrid but the latter is not very popular on Google and there isn't much on the documentation (only 1 page with a simple example).

OnPaintevent. There is even a youtube tutorial: youtube.com/watch?v=8oM1F9r_i9Q. - LU RD