home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1997 May
/
Pcwk0597.iso
/
borland
/
cb
/
setup
/
cbuilder
/
data.z
/
PIEREG.H
< prev
next >
Wrap
C/C++ Source or Header
|
1997-02-28
|
3KB
|
79 lines
//---------------------------------------------------------------------------
// Borland C++Builder
// Copyright (c) 1987, 1997 Borland International Inc. All Rights Reserved.
//---------------------------------------------------------------------------
#ifndef PieRegHPP
#define PieRegHPP
//----------------------------------------------------------------------------
#include <ComCtrls.hpp>
#include <StdCtrls.hpp>
#include <DsgnWnds.hpp>
#include <DsgnIntf.hpp>
#include <Buttons.hpp>
#include <Controls.hpp>
#include <Forms.hpp>
#include <Graphics.hpp>
#include <Classes.hpp>
#include <Windows.hpp>
#include <System.hpp>
#if !defined (REGISTER_ALL_CONTROLS)
#include "pies.h"
#else
#include "source\pies.h"
#endif
//-- type declarations -------------------------------------------------------
class TAngleEditorDlg : public TForm
{
__published:
TLabel *EAngleLabel;
TLabel *SAngleLabel;
TButton *OKButton;
TButton *CancelButton;
TTrackBar *STrackBar;
TTrackBar *ETrackBar;
void __fastcall CancelClick(TObject* Sender);
void __fastcall STrackBarChange(TObject* Sender);
void __fastcall ETrackBarChange(TObject* Sender);
private:
int FOrigStart;
int FOrigEnd;
TAngles* FAngles;
void __fastcall SetStartAngle(int Value);
void __fastcall SetEndAngle(int Value);
void __fastcall SetAngles(TAngles* Value);
public:
__property TAngles* EditorAngles = {read=FAngles, write=SetAngles, nodefault};
__fastcall virtual TAngleEditorDlg(TComponent* AOwner);
__fastcall TAngleEditorDlg(TComponent* AOwner, int Dummy);
__fastcall TAngleEditorDlg(HWND ParentWindow);
__fastcall virtual ~TAngleEditorDlg(void);
};
class TAnglesProperty : public TClassProperty
{
public:
virtual void __fastcall Edit();
virtual TPropertyAttributes __fastcall GetAttributes(void);
__fastcall virtual ~TAnglesProperty(void);
__fastcall TAnglesProperty(void);
};
class TPieEditor : public TDefaultEditor
{
protected:
virtual void __fastcall EditProperty(TPropertyEditor* PropertyEditor,
bool& Continue, bool& FreeEditor);
public:
// virtual void __fastcall Edit();
virtual void __fastcall ExecuteVerb(int Index);
virtual AnsiString __fastcall GetVerb(int Index);
virtual int __fastcall GetVerbCount(void);
__fastcall virtual TPieEditor(TComponent* AComponent, TFormDesigner* ADesigner);
__fastcall virtual ~TPieEditor(void);
};
//-- var, const, procedure ---------------------------------------------------
//-- end unit ----------------------------------------------------------------
#endif // PieReg