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

  1. unit Canvas_OrthoAngle;
  2.  
  3. interface
  4.  
  5. uses
  6.   Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
  7.   ComCtrls, StdCtrls, ExtCtrls, TeEngine, Series, TeeProcs, Chart, Base;
  8.  
  9. type
  10.   TOrthoAngle = class(TBaseForm)
  11.     Label1: TLabel;
  12.     TrackBar1: TTrackBar;
  13.     Label2: TLabel;
  14.     Series1: TBarSeries;
  15.     procedure TrackBar1Change(Sender: TObject);
  16.     procedure FormCreate(Sender: TObject);
  17.   private
  18.     { Private declarations }
  19.   public
  20.     { Public declarations }
  21.   end;
  22.  
  23. implementation
  24.  
  25. {$R *.DFM}
  26.  
  27. procedure TOrthoAngle.TrackBar1Change(Sender: TObject);
  28. begin
  29.   Chart1.View3DOptions.OrthoAngle:=TrackBar1.Position;
  30.   Label2.Caption:=IntToStr(TrackBar1.Position);
  31. end;
  32.  
  33. procedure TOrthoAngle.FormCreate(Sender: TObject);
  34. begin
  35.   Series1.FillSampleValues(6);
  36. end;
  37.  
  38. initialization
  39.   RegisterClass(TOrthoAngle);
  40. end.
  41.