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

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