creating AnnotationTool by code
Posted: Wed Jun 28, 2006 4:16 pm
When I create an array of TAnnotationTools by code they do never display.
AnnotationTools created in the editor works as expected.
What am I doing wrong ?
MAXBARSPERSCREEN = 64;
MMBez : Array[0..MAXBARSPERSCREEN-1] of TAnnotationTool;
for i := 0 to globdat.vBarConf.nBalken - 1 do begin
MMBez := TAnnotationTool.Create( Chart1 );
MMBez.Text := Format( '%d', );
MMBez.Top := 30;
MMbez.Left := i * 50;
MMBez.Height := 10;
MMBez.Width := 40;
MMBez.Active := true;
MMBez.Visible := true;
end;
AnnotationTools created in the editor works as expected.
What am I doing wrong ?
MAXBARSPERSCREEN = 64;
MMBez : Array[0..MAXBARSPERSCREEN-1] of TAnnotationTool;
for i := 0 to globdat.vBarConf.nBalken - 1 do begin
MMBez := TAnnotationTool.Create( Chart1 );
MMBez.Text := Format( '%d', );
MMBez.Top := 30;
MMbez.Left := i * 50;
MMBez.Height := 10;
MMBez.Width := 40;
MMBez.Active := true;
MMBez.Visible := true;
end;