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

  1. unit Legend_VertSpa;
  2.  
  3. interface
  4.  
  5. uses
  6.   Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
  7.   Base, StdCtrls, ExtCtrls, TeeProcs, TeEngine, Chart, Series, Bar3D,
  8.   ComCtrls, TeePenDlg;
  9.  
  10. type
  11.   TLegendVertSpa = class(TBaseForm)
  12.     Edit1: TEdit;
  13.     UpDown1: TUpDown;
  14.     Label1: TLabel;
  15.     Series1: TBar3DSeries;
  16.     procedure Edit1Change(Sender: TObject);
  17.     procedure FormCreate(Sender: TObject);
  18.   private
  19.     { Private declarations }
  20.   public
  21.     { Public declarations }
  22.   end;
  23.  
  24. implementation
  25.  
  26. {$R *.DFM}
  27.  
  28. procedure TLegendVertSpa.Edit1Change(Sender: TObject);
  29. begin
  30.   Chart1.Legend.VertSpacing:=UpDown1.Position;
  31. end;
  32.  
  33. procedure TLegendVertSpa.FormCreate(Sender: TObject);
  34. begin
  35.   inherited;
  36.   Series1.FillSampleValues(5);
  37. end;
  38.  
  39. initialization
  40.   RegisterClass(TLegendVertSpa);
  41. end.
  42.