Problem with GetLengendPos

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Calou
Advanced
Posts: 104
Joined: Wed Nov 19, 2008 12:00 am

Problem with GetLengendPos

Post by Calou » Tue Dec 07, 2010 4:17 pm

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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: Problem with GetLengendPos

Post by Narcís » Fri Dec 10, 2010 9:56 am

Hi Calou,

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

Thanks in advance.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply