Watch, Follow, &
Connect with Us

Please visit our new home
community.embarcadero.com.


Welcome, Guest
Guest Settings
Help

Thread: How to register TeeChart package components to display in tool palette


This question is answered. Helpful answers available: 1. Correct answers available: 1.


Permlink Replies: 7 - Last Post: Feb 24, 2017 1:56 AM Last Post By: Yeray Alonso
rajeswari godug...

Posts: 5
Registered: 1/23/12
How to register TeeChart package components to display in tool palette  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 22, 2017 2:48 AM
Hi,

I am working on embarcadero Rad studio c++ builder 2010 desktop application, where i want to create dashboard screen, for that i want to use TeeChart components like Tchart to display pie chart on the dashboard screen.

I could see TeeChart standard 8 components package in my Project->Options->Packages->Design packages. but I could not see components inside this package like Tchart,TComboFlat, TDBChart etc… in the tool palette. I think I need to register these component classes so that they all will appear in Tool palette.

once it appears in Tool palette, i can drag and drop to my Form. Please let me know the procedure or any samples to register these TeeChart components to show in Tool palette.

Thanks in advance.
Yeray Alonso

Posts: 65
Registered: 6/12/11
Re: How to register TeeChart package components to display in tool palette
Helpful
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 22, 2017 3:43 AM   in response to: rajeswari godug... in response to: rajeswari godug...
Hello,

rajeswari godugula wrote:
I am working on embarcadero Rad studio c++ builder 2010 desktop application, where i want to create dashboard screen, for that i want to use TeeChart components like Tchart to display pie chart on the dashboard screen.

I could see TeeChart standard 8 components package in my Project->Options->Packages->Design packages. but I could not see components inside this package like Tchart,TComboFlat, TDBChart etc… in the tool palette. I think I need to register these component classes so that they all will appear in Tool palette.

once it appears in Tool palette, i can drag and drop to my Form. Please let me know the procedure or any samples to register these TeeChart components to show in Tool palette.

If you left TeeChart Standard selected during the IDE installation, the packages should be installed in the IDE, and also the design components in the toolbox.
I'd check if the TeeChart package are selected in the "Component->Install Packages". Then, I'd create a new simple project and, while in the design view if the form, I'd search for "Chart" in the toolbox.
If it still doesn't show the TeeChart components, I'd suggest you to reinstall/repair the IDE.

--
Best Regards,

Yeray Alonso
Steema Software
Facebook, Twitter, GPlus, LinkedIn, YouTube, GitHub, RSS
Support Options
rajeswari godug...

Posts: 5
Registered: 1/23/12
Re: How to register TeeChart package components to display in tool palette  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 22, 2017 4:39 AM   in response to: Yeray Alonso in response to: Yeray Alonso
Hi,

Thanks for your quick reply..

I am able to see Tchart in tool Palette. Could you please help me with few pie chart sample forms??

Regards,

Yeray Alonso wrote:
Hello,

rajeswari godugula wrote:
I am working on embarcadero Rad studio c++ builder 2010 desktop application, where i want to create dashboard screen, for that i want to use TeeChart components like Tchart to display pie chart on the dashboard screen.

I could see TeeChart standard 8 components package in my Project->Options->Packages->Design packages. but I could not see components inside this package like Tchart,TComboFlat, TDBChart etc… in the tool palette. I think I need to register these component classes so that they all will appear in Tool palette.

once it appears in Tool palette, i can drag and drop to my Form. Please let me know the procedure or any samples to register these TeeChart components to show in Tool palette.

If you left TeeChart Standard selected during the IDE installation, the packages should be installed in the IDE, and also the design components in the toolbox.
I'd check if the TeeChart package are selected in the "Component->Install Packages". Then, I'd create a new simple project and, while in the design view if the form, I'd search for "Chart" in the toolbox.
If it still doesn't show the TeeChart components, I'd suggest you to reinstall/repair the IDE.

--
Best Regards,

Yeray Alonso
Steema Software
Facebook, Twitter, GPlus, LinkedIn, YouTube, GitHub, RSS
Support Options

Edited by: rajeswari godugula on Feb 22, 2017 4:45 AM
Yeray Alonso

Posts: 65
Registered: 6/12/11
Re: How to register TeeChart package components to display in tool palette  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 22, 2017 6:08 AM   in response to: rajeswari godug... in response to: rajeswari godug...
rajeswari godugula wrote:
I am able to see Tchart in tool Palette.

Good!

rajeswari godugula wrote:
Could you please help me with few pie chart sample forms??

Take a look a the "TeeChart compiled demo". It has several examples of Pies.
https://www.steema.com/downloads/vcl

--
Best Regards,

Yeray Alonso
Steema Software
Facebook, Twitter, GPlus, LinkedIn, YouTube, GitHub, RSS
Support Options
rajeswari godug...

Posts: 5
Registered: 1/23/12
Re: How to register TeeChart package components to display in tool palette  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 23, 2017 1:22 AM   in response to: Yeray Alonso in response to: Yeray Alonso
Hi,

Below link is showing demos, when i click to see source code on "TeeChart pro examples ->Chart", access violation error is throwing. can you guide me for documentation link where i can see TChart component usage and how can we draw pie chart using TChart component?

Yeray Alonso wrote:
rajeswari godugula wrote:
I am able to see Tchart in tool Palette.

Good!

rajeswari godugula wrote:
Could you please help me with few pie chart sample forms??

Take a look a the "TeeChart compiled demo". It has several examples of Pies.
https://www.steema.com/downloads/vcl

--
Best Regards,

Yeray Alonso
Steema Software
Facebook, Twitter, GPlus, LinkedIn, YouTube, GitHub, RSS
Support Options

Edited by: rajeswari godugula on Feb 23, 2017 1:32 AM
Yeray Alonso

Posts: 65
Registered: 6/12/11
Re: How to register TeeChart package components to display in tool palette  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 23, 2017 3:34 AM   in response to: rajeswari godug... in response to: rajeswari godug...
Hello,

rajeswari godugula wrote:
Below link is showing demos, when i click to see source code on "TeeChart pro examples ->Chart", access violation error is throwing. can you guide me for documentation link where i can see TChart component usage and how can we draw pie chart using TChart component?

I'm sorry, the "Source code" tab requires TeeChart Pro (eval or registered) to work.
The complete source code of the examples can be found here.

The examples are in Delphi, but you shouldn't find too much problems to translate them to C++.

Find below the sources of the Pie_Multi example:

unit Pie_Multi;
{$I TeeDefs.inc}
 
interface
 
uses
  {$IFNDEF LINUX}
  Windows, Messages,
  {$ENDIF}
  SysUtils, Classes,
  {$IFDEF CLX}
  QGraphics, QControls, QForms, QDialogs, QExtCtrls, QStdCtrls, QComCtrls,
  {$ELSE}
  Graphics, Controls, Forms, Dialogs, ExtCtrls, StdCtrls, ComCtrls,
  {$ENDIF}
  Base, TeEngine, Series, TeeProcs, Chart, TeCanvas, TeeGDIPlus;
 
type
  TPieMultiple = class(TBaseForm)
    Series1: TPieSeries;
    Series2: TPieSeries;
    Series3: TPieSeries;
    Series4: TPieSeries;
    procedure FormCreate(Sender: TObject);
    procedure Series1BeforeDrawValues(Sender: TObject);
    procedure Series2BeforeDrawValues(Sender: TObject);
    procedure Series3BeforeDrawValues(Sender: TObject);
    procedure Series4BeforeDrawValues(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;
 
implementation
 
{$IFNDEF CLX}
{$R *.DFM}
{$ELSE}
{$R *.xfm}
{$ENDIF}
 
procedure TPieMultiple.FormCreate(Sender: TObject);
begin
  inherited;
  Chart1.SeriesList.FillSampleValues(4);
 
  Chart1.ApplyZOrder:=False;
 
  Series1.EdgeStyle := edCurved;
  Series2.EdgeStyle := edCurved;
  Series3.EdgeStyle := edCurved;
  Series4.EdgeStyle := edCurved;
end;
 
procedure TPieMultiple.Series1BeforeDrawValues(Sender: TObject);
begin
  Chart1.ChartRect:=Rect(10,10,Chart1.Width div 2, Chart1.Height div 2);
end;
 
procedure TPieMultiple.Series2BeforeDrawValues(Sender: TObject);
begin
  Chart1.ChartRect:=Rect(Chart1.Width div 2, 10, Chart1.Width, Chart1.Height div 2);
end;
 
procedure TPieMultiple.Series3BeforeDrawValues(Sender: TObject);
begin
  Chart1.ChartRect:=Rect(10,Chart1.Height div 2,Chart1.Width div 2, Chart1.Height);
end;
 
procedure TPieMultiple.Series4BeforeDrawValues(Sender: TObject);
begin
  Chart1.ChartRect:=Rect(Chart1.Width div 2, Chart1.Height div 2, Chart1.Width, Chart1.Height);
end;
 
initialization
  RegisterClass(TPieMultiple);
end.


--
Best Regards,

Yeray Alonso
Steema Software
Facebook, Twitter, GPlus, LinkedIn, YouTube, GitHub, RSS
Support Options
rajeswari godug...

Posts: 5
Registered: 1/23/12
Re: How to register TeeChart package components to display in tool palette  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 23, 2017 4:12 AM   in response to: Yeray Alonso in response to: Yeray Alonso
Thanks... Sorry to trouble you again...

Yeah i have got c++ files as well. I was asking for Tchart component complete documentation like each property of component and explanation for the same.

For example, when i add Tchart to my Form, customAxes and seriesGroups are showing under Chart1 and apart from that i am able to select EditChart option and able to add Series1 and select pie chart in that. not sure this is right way to add pie chart to Form or which property to select to show what.and what is meant by Axisvisible, AxisBehind, how can i add my own slices to pie chart etc.... these kind of documentation i am expecting.

Do you have that kind of documentation or how i should get started with these components?

Yeray Alonso wrote:
Hello,

rajeswari godugula wrote:
Below link is showing demos, when i click to see source code on "TeeChart pro examples ->Chart", access violation error is throwing. can you guide me for documentation link where i can see TChart component usage and how can we draw pie chart using TChart component?

I'm sorry, the "Source code" tab requires TeeChart Pro (eval or registered) to work.
The complete source code of the examples can be found here.

The examples are in Delphi, but you shouldn't find too much problems to translate them to C++.

Find below the sources of the Pie_Multi example:

unit Pie_Multi;
{$I TeeDefs.inc}
 
interface
 
uses
  {$IFNDEF LINUX}
  Windows, Messages,
  {$ENDIF}
  SysUtils, Classes,
  {$IFDEF CLX}
  QGraphics, QControls, QForms, QDialogs, QExtCtrls, QStdCtrls, QComCtrls,
  {$ELSE}
  Graphics, Controls, Forms, Dialogs, ExtCtrls, StdCtrls, ComCtrls,
  {$ENDIF}
  Base, TeEngine, Series, TeeProcs, Chart, TeCanvas, TeeGDIPlus;
 
type
  TPieMultiple = class(TBaseForm)
    Series1: TPieSeries;
    Series2: TPieSeries;
    Series3: TPieSeries;
    Series4: TPieSeries;
    procedure FormCreate(Sender: TObject);
    procedure Series1BeforeDrawValues(Sender: TObject);
    procedure Series2BeforeDrawValues(Sender: TObject);
    procedure Series3BeforeDrawValues(Sender: TObject);
    procedure Series4BeforeDrawValues(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;
 
implementation
 
{$IFNDEF CLX}
{$R *.DFM}
{$ELSE}
{$R *.xfm}
{$ENDIF}
 
procedure TPieMultiple.FormCreate(Sender: TObject);
begin
  inherited;
  Chart1.SeriesList.FillSampleValues(4);
 
  Chart1.ApplyZOrder:=False;
 
  Series1.EdgeStyle := edCurved;
  Series2.EdgeStyle := edCurved;
  Series3.EdgeStyle := edCurved;
  Series4.EdgeStyle := edCurved;
end;
 
procedure TPieMultiple.Series1BeforeDrawValues(Sender: TObject);
begin
  Chart1.ChartRect:=Rect(10,10,Chart1.Width div 2, Chart1.Height div 2);
end;
 
procedure TPieMultiple.Series2BeforeDrawValues(Sender: TObject);
begin
  Chart1.ChartRect:=Rect(Chart1.Width div 2, 10, Chart1.Width, Chart1.Height div 2);
end;
 
procedure TPieMultiple.Series3BeforeDrawValues(Sender: TObject);
begin
  Chart1.ChartRect:=Rect(10,Chart1.Height div 2,Chart1.Width div 2, Chart1.Height);
end;
 
procedure TPieMultiple.Series4BeforeDrawValues(Sender: TObject);
begin
  Chart1.ChartRect:=Rect(Chart1.Width div 2, Chart1.Height div 2, Chart1.Width, Chart1.Height);
end;
 
initialization
  RegisterClass(TPieMultiple);
end.


--
Best Regards,

Yeray Alonso
Steema Software
Facebook, Twitter, GPlus, LinkedIn, YouTube, GitHub, RSS
Support Options
Yeray Alonso

Posts: 65
Registered: 6/12/11
Re: How to register TeeChart package components to display in tool palette  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 24, 2017 1:56 AM   in response to: rajeswari godug... in response to: rajeswari godug...
Hello,

rajeswari godugula wrote:
Yeah i have got c++ files as well. I was asking for Tchart component complete documentation like each property of component and explanation for the same.

For example, when i add Tchart to my Form, customAxes and seriesGroups are showing under Chart1 and apart from that i am able to select EditChart option and able to add Series1 and select pie chart in that. not sure this is right way to add pie chart to Form or which property to select to show what.and what is meant by Axisvisible, AxisBehind, how can i add my own slices to pie chart etc.... these kind of documentation i am expecting.

Do you have that kind of documentation or how i should get started with these components?

There is an online version of the documentation here including "TeeChart for VCL/FMX Tutorials" and "TeeChart for VCL/FMX Library Reference".
And there's a (quite old) offline version "User Guide and Tutorials" at the "Additional Downloads" here.

--
Best Regards,

Yeray Alonso
Steema Software
Facebook, Twitter, GPlus, LinkedIn, YouTube, GitHub, RSS
Support Options
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02