Page 1 of 1

Problem with GetLengendPos

Posted: Tue Dec 07, 2010 4:17 pm
by 10050873
Hello,

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;
On the chart there are a lot of square by using this event :http://www.cijoint.fr/cjlink.php?file=c ... 7CI34s.jpg
Image

Thanks for help

Regards

Re: Problem with GetLengendPos

Posted: Fri Dec 10, 2010 9:56 am
by narcis
Hi Calou,

Can you please attach a simple example project we can run "as-is" to reproduce the problem here?

Thanks in advance.