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

  1. unit Contour_View2D;
  2.  
  3. interface
  4.  
  5. uses
  6.   Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
  7.   Base, StdCtrls, TeEngine, TeeSurfa, ExtCtrls, TeeProcs, Chart;
  8.  
  9. type
  10.   TContourView2D = class(TBaseForm)
  11.     Series1: TContourSeries;
  12.     CheckBox1: TCheckBox;
  13.     procedure CheckBox1Click(Sender: TObject);
  14.     procedure FormCreate(Sender: TObject);
  15.   private
  16.     { Private declarations }
  17.   public
  18.     { Public declarations }
  19.   end;
  20.  
  21. implementation
  22.  
  23. {$R *.DFM}
  24.  
  25. procedure TContourView2D.CheckBox1Click(Sender: TObject);
  26. begin
  27.   Chart1.View3D:=CheckBox1.Checked;
  28. end;
  29.  
  30. procedure TContourView2D.FormCreate(Sender: TObject);
  31. begin
  32.   inherited;
  33.   Series1.FillSampleValues(20);
  34. end;
  35.  
  36. initialization
  37.   RegisterClass(TContourView2D);
  38. end.
  39.