home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1997 May
/
Pcwk0597.iso
/
borland
/
cb
/
setup
/
cbuilder
/
data.z
/
PIES.H
< prev
next >
Wrap
C/C++ Source or Header
|
1997-02-28
|
2KB
|
69 lines
//---------------------------------------------------------------------------
// Borland C++Builder
// Copyright (c) 1987, 1997 Borland International Inc. All Rights Reserved.
//---------------------------------------------------------------------------
#ifndef PiesHPP
#define PiesHPP
//----------------------------------------------------------------------------
#include <StdCtrls.hpp>
#include <Graphics.hpp>
#include <Forms.hpp>
#include <Controls.hpp>
#include <Classes.hpp>
#include <System.hpp>
#include <math.h>
//-- type declarations -------------------------------------------------------
class TAngles : public TPersistent
{
private:
int FStartAngle;
int FEndAngle;
TNotifyEvent FOnChange;
void __fastcall SetStart(int Value);
void __fastcall SetEnd(int Value);
public:
void __fastcall Assign(TPersistent* Value);
void __fastcall Changed(void);
__published:
__property int StartAngle = {read=FStartAngle, write=SetStart, nodefault};
__property int EndAngle = {read=FEndAngle, write=SetEnd, nodefault};
__property TNotifyEvent OnChange = {read=FOnChange, write=FOnChange};
public:
__fastcall TAngles(void);
__fastcall virtual ~TAngles(void);
};
class TPie : public TGraphicControl
{
__published:
TPen* FPen;
TBrush* FBrush;
TEdit* FEdit;
TAngles* FAngles;
virtual void __fastcall Paint(void);
void __fastcall SetBrush(TBrush* Value);
void __fastcall SetPen(TPen* Value);
void __fastcall SetAngles(TAngles* Value);
void __fastcall StyleChanged(TObject* Sender);
__property TAngles* Angles = {read=FAngles, write=SetAngles, nodefault};
__property TBrush* Brush = {read=FBrush, write=SetBrush, nodefault};
__property TPen* Pen = {read=FPen, write=SetPen, nodefault};
__property OnClick ;
__property OnDblClick ;
__property OnDragDrop ;
__property OnDragOver ;
__property OnEndDrag ;
__property OnMouseDown ;
__property OnMouseMove ;
__property OnMouseUp ;
public:
__fastcall virtual TPie(TComponent* AOwner);
__fastcall virtual ~TPie(void);
};
//-- var, const, procedure ---------------------------------------------------
#define PI 3.1415926535897932385
//-- end unit ----------------------------------------------------------------
#endif // Pies