home *** CD-ROM | disk | FTP | other *** search
- unit Series_Shape;
-
- interface
-
- uses
- Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
- Base, TeEngine, TeeShape, ExtCtrls, TeeProcs, Chart, StdCtrls;
-
- type
- TShapeSeriesForm = class(TBaseForm)
- Series1: TChartShape;
- Series2: TChartShape;
- Series3: TChartShape;
- Series4: TChartShape;
- Series5: TChartShape;
- CheckBox1: TCheckBox;
- procedure Series1Click(Sender: TChartSeries; ValueIndex: Integer;
- Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
- procedure CheckBox1Click(Sender: TObject);
- private
- { Private declarations }
- public
- { Public declarations }
- end;
-
- implementation
-
- {$R *.DFM}
-
- Uses EditChar;
-
- procedure TShapeSeriesForm.Series1Click(Sender: TChartSeries;
- ValueIndex: Integer; Button: TMouseButton; Shift: TShiftState; X,
- Y: Integer);
- begin
- EditSeries(Self,Sender); { when a shape is clicked... }
- Chart1.CancelMouse:=True; { stop mouse zooming }
- end;
-
- procedure TShapeSeriesForm.CheckBox1Click(Sender: TObject);
- var t:Integer;
- begin
- for t:=0 to Chart1.SeriesCount-1 do
- if Chart1[t] is TChartShape then
- TChartShape(Chart1[t]).Transparent:=CheckBox1.Checked
- end;
-
- initialization
- RegisterClass(TShapeSeriesForm);
- end.
-