Chart Height and Width
Posted: Wed Apr 08, 2009 2:42 pm
I placed on the form FMain: Chart1 (TChart) and Panel1 (TPanel) with Label1 and Label2 (TLabel). I used procedure TFMain.FormShow with two statements:
Label1.Caption:=IntToStr(Chart1.ChartHeight);
Label2.Caption:=IntToStr(Chart1.ChartWidth);
and procedure TFMain.Panel1Click with the same two statements.
However, at the start of my program, I obtain “0” and “0”, but when I click on Panel1, I obtain the actual height and the actual width of the Chart1. What is it? How I can obtain correct sizes of Chart1 right after the start of this program?
Label1.Caption:=IntToStr(Chart1.ChartHeight);
Label2.Caption:=IntToStr(Chart1.ChartWidth);
and procedure TFMain.Panel1Click with the same two statements.
However, at the start of my program, I obtain “0” and “0”, but when I click on Panel1, I obtain the actual height and the actual width of the Chart1. What is it? How I can obtain correct sizes of Chart1 right after the start of this program?