home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 9 / CDACTUAL9.iso / progs / CB / DATA.Z / PIEREG.H < prev    next >
Encoding:
C/C++ Source or Header  |  1996-08-19  |  1.8 KB  |  62 lines

  1. //--------------------------------------------------------------------------
  2. #ifndef PieRegH
  3. #define PieRegH
  4. //--------------------------------------------------------------------------
  5. #include <Windows.hpp>
  6. #include <Classes.hpp>
  7. #include <Graphics.hpp>
  8. #include <Forms.hpp>
  9. #include <StdCtrls.hpp>
  10. #include <Controls.hpp>
  11. #include <ComCtrls.hpp>
  12. #include <Controls.hpp>
  13. #include <Pies.hpp>
  14. #include <Buttons.hpp>
  15. #include <DsgnIntf.hpp>
  16. #include <DsgnWnds.hpp>
  17. #include <StdCtrls.hpp>
  18. #include <ComCtrls.hpp>
  19.  
  20. class TAngleEditorDlg : public TForm{
  21.   __published:
  22.     TLabel* EAngleLabel;
  23.     TButton* OKButton;
  24.     TButton* CancelButton;
  25.     TLabel* SAngleLabel;
  26.     TTrackBar* STrackBar;
  27.     TTrackBar* ETrackBar;
  28.     void __fastcall CancelClick(TObject* Sender);
  29.     void __fastcall  STrackBarChange(TObject* Sender);
  30.     void __fastcall  ETrackBarChange(TObject* Sender);
  31.   private:
  32.     Integer FOrigStart, FOrigEnd;
  33.     TAngles FAngles ;
  34.     void __fastcall  SetStartAngle(Integer Value);
  35.     void __fastcall  SetEndAngle(Integer Value);
  36.     void __fastcall  SetAngles(TAngles Value);
  37.   public:
  38.     property TAngles EditorAngles = {read = FAngles, write = SetAngles};
  39. };
  40.  
  41. class TAnglesProperty : public TClassProperty{
  42.   public
  43.     void __fastcall   Edit();
  44.     TPropertyAttributes GetAttributes();
  45. };
  46.  
  47. // Component editor - brings up angle editor when double clicking on
  48. //    Angles property
  49. class TPieEditor : public TDefaultEditor{
  50.   protected
  51.     void __fastcall  EditProperty(TPropertyEditor PropertyEditor,
  52.                                   Boolean Continue,
  53.                                   Boolean FreeEditor);
  54.   public
  55.     void __fastcall  ExecuteVerb(Index: Integer)
  56.     String GetVerb(Integer Index);
  57.     Integer GetVerbCount();
  58. };
  59.  
  60. void __fastcall Register();
  61.  
  62.