How to me to save Tree1 forms?
Posted: Sun Nov 22, 2009 6:45 am
Hello!
1) As to me to save Tree1 if I have created an own class?
TCompas = class(TTreeNodeShape)
private
FIndicator: Boolean;
Timer: TTimer;
FAngleFirst: Extended;
FAngleLast: Extended;
FAngleValue: Extended;
FBrushPie: TChartBrush;
FBrushCircle: TChartBrush;
FBrushRect: TChartBrush;
FBrushArrow: TChartBrush;
FPenPie: TChartPen;
FPenCircle: TChartPen;
FPenRect: TChartPen;
FPenArrow: TChartPen;
FLabelFont: TTeeFont;
FDanger: Boolean;
FBrushDanger: TChartBrush;
FISDanger: Boolean;
FLabelIncriment: Integer;
procedure SetAngleFirst(const Value: Extended);
procedure SetAngleLast(const Value: Extended);
procedure SetAngleValue(const Value: Extended);
procedure SetBrushPie(const Value: TChartBrush);
procedure SetBrushArrow(const Value: TChartBrush);
procedure SetBrushCircle(const Value: TChartBrush);
procedure SetBrushRect(const Value: TChartBrush);
procedure SetLabelFont(const Value: TTeeFont);
procedure SetPenArrow(const Value: TChartPen);
procedure SetPenCircle(const Value: TChartPen);
procedure SetPenPie(const Value: TChartPen);
procedure SetPenRect(const Value: TChartPen);
procedure SetDanger(const Value: Boolean);
procedure SetBrushDanger(const Value: TChartBrush);
procedure SetISDanger(const Value: Boolean);
procedure SetLabelIncriment(const Value: Integer);
public
procedure Timer1Timer(Sender: TObject);
Constructor Create(AOwner:TComponent); override;
Destructor Destroy; override;
procedure Draw; override; // to draw the background...
Published
Property ISDanger: Boolean read FISDanger write SetISDanger;
Property Danger: Boolean read FDanger write SetDanger;
Property BrushDanger: TChartBrush read FBrushDanger write SetBrushDanger;
Property BrushRect: TChartBrush read FBrushRect write SetBrushRect;
Property BrushCircle: TChartBrush read FBrushCircle write SetBrushCircle;
Property BrushPie:TChartBrush read FBrushPie write SetBrushPie;
Property BrushArrow: TChartBrush read FBrushArrow write SetBrushArrow;
Property PenRect: TChartPen read FPenRect write SetPenRect;
Property PenCircle: TChartPen read FPenCircle write SetPenCircle;
Property PenPie:TChartPen read FPenPie write SetPenPie;
Property PenArrow: TChartPen read FPenArrow write SetPenArrow;
Property AngleFirst: Extended read FAngleFirst write SetAngleFirst;
Property AngleLast: Extended read FAngleLast write SetAngleLast;
Property AngleValue: Extended read FAngleValue write SetAngleValue;
Property LabelFont: TTeeFont read FLabelFont write SetLabelFont;
Property LabelIncriment: Integer read FLabelIncriment write SetLabelIncriment;
end;
1) As to me to save Tree1 if I have created an own class?
TCompas = class(TTreeNodeShape)
private
FIndicator: Boolean;
Timer: TTimer;
FAngleFirst: Extended;
FAngleLast: Extended;
FAngleValue: Extended;
FBrushPie: TChartBrush;
FBrushCircle: TChartBrush;
FBrushRect: TChartBrush;
FBrushArrow: TChartBrush;
FPenPie: TChartPen;
FPenCircle: TChartPen;
FPenRect: TChartPen;
FPenArrow: TChartPen;
FLabelFont: TTeeFont;
FDanger: Boolean;
FBrushDanger: TChartBrush;
FISDanger: Boolean;
FLabelIncriment: Integer;
procedure SetAngleFirst(const Value: Extended);
procedure SetAngleLast(const Value: Extended);
procedure SetAngleValue(const Value: Extended);
procedure SetBrushPie(const Value: TChartBrush);
procedure SetBrushArrow(const Value: TChartBrush);
procedure SetBrushCircle(const Value: TChartBrush);
procedure SetBrushRect(const Value: TChartBrush);
procedure SetLabelFont(const Value: TTeeFont);
procedure SetPenArrow(const Value: TChartPen);
procedure SetPenCircle(const Value: TChartPen);
procedure SetPenPie(const Value: TChartPen);
procedure SetPenRect(const Value: TChartPen);
procedure SetDanger(const Value: Boolean);
procedure SetBrushDanger(const Value: TChartBrush);
procedure SetISDanger(const Value: Boolean);
procedure SetLabelIncriment(const Value: Integer);
public
procedure Timer1Timer(Sender: TObject);
Constructor Create(AOwner:TComponent); override;
Destructor Destroy; override;
procedure Draw; override; // to draw the background...
Published
Property ISDanger: Boolean read FISDanger write SetISDanger;
Property Danger: Boolean read FDanger write SetDanger;
Property BrushDanger: TChartBrush read FBrushDanger write SetBrushDanger;
Property BrushRect: TChartBrush read FBrushRect write SetBrushRect;
Property BrushCircle: TChartBrush read FBrushCircle write SetBrushCircle;
Property BrushPie:TChartBrush read FBrushPie write SetBrushPie;
Property BrushArrow: TChartBrush read FBrushArrow write SetBrushArrow;
Property PenRect: TChartPen read FPenRect write SetPenRect;
Property PenCircle: TChartPen read FPenCircle write SetPenCircle;
Property PenPie:TChartPen read FPenPie write SetPenPie;
Property PenArrow: TChartPen read FPenArrow write SetPenArrow;
Property AngleFirst: Extended read FAngleFirst write SetAngleFirst;
Property AngleLast: Extended read FAngleLast write SetAngleLast;
Property AngleValue: Extended read FAngleValue write SetAngleValue;
Property LabelFont: TTeeFont read FLabelFont write SetLabelFont;
Property LabelIncriment: Integer read FLabelIncriment write SetLabelIncriment;
end;