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

  1. unit Surface_Palette;
  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.   TSurfacePaletteForm = class(TBaseForm)
  11.     Series1: TSurfaceSeries;
  12.     Label1: TLabel;
  13.     ComboBox1: TComboBox;
  14.     procedure ComboBox1Change(Sender: TObject);
  15.     procedure FormCreate(Sender: TObject);
  16.     procedure FormShow(Sender: TObject);
  17.   private
  18.     { Private declarations }
  19.   public
  20.     { Public declarations }
  21.   end;
  22.  
  23. implementation
  24.  
  25. {$R *.DFM}
  26.  
  27. procedure TSurfacePaletteForm.ComboBox1Change(Sender: TObject);
  28. begin
  29.   Case ComboBox1.ItemIndex of
  30.     0: Series1.PaletteStyle:=psPale;
  31.     1: Series1.PaletteStyle:=psStrong;
  32.   end;
  33. end;
  34.  
  35. procedure TSurfacePaletteForm.FormCreate(Sender: TObject);
  36. begin
  37.   inherited;
  38.   Series1.FillSampleValues(30);
  39. end;
  40.  
  41. procedure TSurfacePaletteForm.FormShow(Sender: TObject);
  42. begin
  43.   inherited;
  44.   ComboBox1.ItemIndex:=1;
  45. end;
  46.  
  47. initialization
  48.   RegisterClass(TSurfacePaletteForm);
  49. end.
  50.