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

  1. unit Function_StdDeviation;
  2.  
  3. interface
  4.  
  5. uses
  6.   Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
  7.   Base, StdCtrls, TeEngine, StatChar, Series, ExtCtrls, TeeProcs, Chart;
  8.  
  9. type
  10.   TStdDeviationForm = class(TBaseForm)
  11.     Series1: TLineSeries;
  12.     Series2: TLineSeries;
  13.     TeeFunction1: TStdDeviationFunction;
  14.     Label1: TLabel;
  15.     ComboBox1: TComboBox;
  16.     procedure ComboBox1Change(Sender: TObject);
  17.     procedure FormCreate(Sender: TObject);
  18.     procedure FormShow(Sender: TObject);
  19.   private
  20.     { Private declarations }
  21.   public
  22.     { Public declarations }
  23.   end;
  24.  
  25. implementation
  26.  
  27. {$R *.DFM}
  28.  
  29. procedure TStdDeviationForm.ComboBox1Change(Sender: TObject);
  30. begin
  31.   if ComboBox1.ItemIndex=0 then TeeFunction1.Complete:=False
  32.                            else TeeFunction1.Complete:=True;
  33. end;
  34.  
  35. procedure TStdDeviationForm.FormCreate(Sender: TObject);
  36. begin
  37.   inherited;
  38.   Series1.FillSampleValues(30);
  39. end;
  40.  
  41. procedure TStdDeviationForm.FormShow(Sender: TObject);
  42. begin
  43.   inherited;
  44.   ComboBox1.ItemIndex:=0;
  45. end;
  46.  
  47. initialization
  48.   RegisterClass(TStdDeviationForm);
  49. end.
  50.