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

  1. unit Chart_Gallery;
  2.  
  3. interface
  4.  
  5. uses
  6.   Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
  7.   Base, ExtCtrls, TeeProcs, TeEngine, Chart, StdCtrls, TeeGally;
  8.  
  9. type
  10.   TChartGallery = class(TBaseForm)
  11.     procedure FormCreate(Sender: TObject);
  12.     procedure FormShow(Sender: TObject);
  13.   private
  14.     { Private declarations }
  15.   public
  16.     { Public declarations }
  17.     Gallery: TTeeGallery;
  18.   end;
  19.  
  20. implementation
  21.  
  22. {$R *.DFM}
  23.  
  24. procedure TChartGallery.FormCreate(Sender: TObject);
  25. begin
  26.   inherited;
  27.   Chart1.Visible:=False;
  28.   Panel1.Visible:=False;
  29.   Gallery:=TTeeGallery.Create(Self);
  30.   With Gallery do
  31.   begin
  32.     Align:=alClient;
  33.     BorderStyle:=bsNone;
  34.     P1.Visible:=False;
  35.     Parent:=Self;
  36.   end;
  37. end;
  38.  
  39. procedure TChartGallery.FormShow(Sender: TObject);
  40. begin
  41.   inherited;
  42.   Gallery.Show;
  43. end;
  44.  
  45. initialization
  46.   RegisterClass(TChartGallery);
  47. end.
  48.