Misssing TChart.Panel

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
holgerBig
Newbie
Newbie
Posts: 3
Joined: Thu Feb 06, 2020 12:00 am

Misssing TChart.Panel

Post by holgerBig » Thu Feb 20, 2020 2:28 pm

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?

Marc
Site Admin
Site Admin
Posts: 1272
Joined: Thu Oct 16, 2003 4:00 am
Location: Girona
Contact:

Re: Misssing TChart.Panel

Post by Marc » Fri Feb 21, 2020 2:40 pm

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
Steema Support

holgerBig
Newbie
Newbie
Posts: 3
Joined: Thu Feb 06, 2020 12:00 am

Re: Misssing TChart.Panel

Post by holgerBig » Mon Feb 24, 2020 1:33 pm

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

Pep
Site Admin
Site Admin
Posts: 3303
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Re: Misssing TChart.Panel

Post by Pep » Mon Feb 24, 2020 9:24 pm

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;

Post Reply