Problem with GetLengendPos
Posted: Tue Dec 07, 2010 4:17 pm
Hello,
I use this code in order to place a radiogroup
On the chart there are a lot of square by using this event :http://www.cijoint.fr/cjlink.php?file=c ... 7CI34s.jpg
Thanks for help
Regards
I use this code in order to place a radiogroup
Code: Select all
procedure TfrmMain.ChrtOccStatusGetLegendPos(Sender: TCustomChart; Index: Integer; var X, Y, XColor: Integer);
var
i:integer;
chrt:TChart;
begin
chrt:=Sender as TChart;
for i := 0 to High(frmOccStatus.TabRdGrpOccStatus) do
begin
if frmOccStatus.TabRdGrpOccStatus[i].Parent=chrt then
begin
frmOccStatus.TabRdGrpOccStatus[i].Top:=chrt.Legend.Top+chrt.Legend.Height+10;
frmOccStatus.TabRdGrpOccStatus[i].Left:=chrt.Legend.Left;
end;
end;
end;
Thanks for help
Regards