home *** CD-ROM | disk | FTP | other *** search
- //--------------------------------------------------------------------------
- #ifndef PieRegH
- #define PieRegH
- //--------------------------------------------------------------------------
- #include <Windows.hpp>
- #include <Classes.hpp>
- #include <Graphics.hpp>
- #include <Forms.hpp>
- #include <StdCtrls.hpp>
- #include <Controls.hpp>
- #include <ComCtrls.hpp>
- #include <Controls.hpp>
- #include <Pies.hpp>
- #include <Buttons.hpp>
- #include <DsgnIntf.hpp>
- #include <DsgnWnds.hpp>
- #include <StdCtrls.hpp>
- #include <ComCtrls.hpp>
-
- class TAngleEditorDlg : public TForm{
- __published:
- TLabel* EAngleLabel;
- TButton* OKButton;
- TButton* CancelButton;
- TLabel* SAngleLabel;
- TTrackBar* STrackBar;
- TTrackBar* ETrackBar;
- void __fastcall CancelClick(TObject* Sender);
- void __fastcall STrackBarChange(TObject* Sender);
- void __fastcall ETrackBarChange(TObject* Sender);
- private:
- Integer FOrigStart, FOrigEnd;
- TAngles FAngles ;
- void __fastcall SetStartAngle(Integer Value);
- void __fastcall SetEndAngle(Integer Value);
- void __fastcall SetAngles(TAngles Value);
- public:
- property TAngles EditorAngles = {read = FAngles, write = SetAngles};
- };
-
- class TAnglesProperty : public TClassProperty{
- public
- void __fastcall Edit();
- TPropertyAttributes GetAttributes();
- };
-
- // Component editor - brings up angle editor when double clicking on
- // Angles property
- class TPieEditor : public TDefaultEditor{
- protected
- void __fastcall EditProperty(TPropertyEditor PropertyEditor,
- Boolean Continue,
- Boolean FreeEditor);
- public
- void __fastcall ExecuteVerb(Index: Integer)
- String GetVerb(Integer Index);
- Integer GetVerbCount();
- };
-
- void __fastcall Register();
-
-