Page 1 of 1

Misssing TChart.Panel

Posted: Thu Feb 20, 2020 2:28 pm
by 16588086
In many examples i see the TChart.Panel object. I get a compiler error, when i access the panel object.
I think, something is missing in my project?

Re: Misssing TChart.Panel

Posted: Fri Feb 21, 2020 2:40 pm
by Marc
Hello,

I'm not familiar with the use of TChart.Panel; There are classes that have a similar name, such as TCustomTeePanel or TCustomTeePanelExtended; These are declared in TeeProcs (that is normally a default 'uses' in the forms of a project using TeeChart).

We'll need to see more specific details of the error to be able to debug it any further.

Regards,
Marc Meumann

Re: Misssing TChart.Panel

Posted: Mon Feb 24, 2020 1:33 pm
by 16588086
In the picture you see the panel-item. I like to move this object at runtime or set the margin values.
How does it works.

Image

Holger

Re: Misssing TChart.Panel

Posted: Mon Feb 24, 2020 9:24 pm
by Pep
Hello,

you can use the panel editor by using the TeeEdiPane unit :

Code: Select all

uses
TeeEdiPane;

var editor : tform ;
begin
  editor := tform.Create(self);
  TFormTeePanel.InsertAt(self,editor,chart1);
  editor.ShowModal();
end;
or change the margins at runtime by using :

Code: Select all

Chart1.MarginLeft := 50;
Chart1.MarginTop := 50;
Chart1.MarginRight := 50;
Chart1.MarginBottom := 50;