home *** CD-ROM | disk | FTP | other *** search
/ CD Actual Thematic 25: Programming / pc_actual_25.iso / Delphi / TeeChartPro / TeeChart5Delphi5Eval.exe / %MAINDIR% / Examples / Features / Chart_GalleryPanel.pas < prev    next >
Encoding:
Pascal/Delphi Source File  |  2001-09-10  |  1.1 KB  |  47 lines

  1. unit Chart_GalleryPanel;
  2.  
  3. interface
  4.  
  5. uses
  6.   Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
  7.   Base, TeEngine, Series, TeeGalleryPanel, ExtCtrls, TeeProcs, Chart,
  8.   StdCtrls;
  9.  
  10. type
  11.   TGalleryPanelForm = class(TBaseForm)
  12.     ChartGalleryPanel1: TChartGalleryPanel;
  13.     Series1: TLineSeries;
  14.     Splitter1: TSplitter;
  15.     procedure FormCreate(Sender: TObject);
  16.     procedure ChartGalleryPanel1ChangeChart(Sender: TObject);
  17.   private
  18.     { Private declarations }
  19.   public
  20.     { Public declarations }
  21.   end;
  22.  
  23. var
  24.   GalleryPanelForm: TGalleryPanelForm;
  25.  
  26. implementation
  27.  
  28. {$R *.DFM}
  29.  
  30. procedure TGalleryPanelForm.FormCreate(Sender: TObject);
  31. begin
  32.   inherited;
  33.   ChartGalleryPanel1.NumCols:=3;
  34.   ChartGalleryPanel1.NumRows:=3;
  35.   ChartGalleryPanel1.CreateGalleryPage('Standard');
  36.   Series1.FillSampleValues(8);
  37. end;
  38.  
  39. procedure TGalleryPanelForm.ChartGalleryPanel1ChangeChart(Sender: TObject);
  40. begin
  41.   ChangeAllSeriesType(Chart1,TChartSeriesClass(ChartGalleryPanel1.SelectedSeries.ClassType));
  42. end;
  43.  
  44. initialization
  45.   RegisterClass(TGalleryPanelForm);
  46. end.
  47.