home *** CD-ROM | disk | FTP | other *** search
/ Delphi 5 for Professionals / DELPHI5.iso / AddOns / Components / Essentials / SETUP.EXE / %MAINDIR% / EsDir.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1998-11-28  |  3.1 KB  |  89 lines

  1. // Borland C++ Builder
  2. // Copyright (c) 1995, 1998 by Borland International
  3. // All rights reserved
  4.  
  5. // (DO NOT EDIT: machine generated header) 'EsDir.pas' rev: 3.00
  6.  
  7. #ifndef EsDirHPP
  8. #define EsDirHPP
  9. #include <EsUtil.hpp>
  10. #include <EsData.hpp>
  11. #include <Messages.hpp>
  12. #include <Graphics.hpp>
  13. #include <Controls.hpp>
  14. #include <Classes.hpp>
  15. #include <Windows.hpp>
  16. #include <SysInit.hpp>
  17. #include <System.hpp>
  18.  
  19. //-- user supplied -----------------------------------------------------------
  20.  
  21. namespace Esdir
  22. {
  23. //-- type declarations -------------------------------------------------------
  24. class DELPHICLASS TEsCustomDirectionPicker;
  25. class PASCALIMPLEMENTATION TEsCustomDirectionPicker : public Controls::TGraphicControl 
  26. {
  27.     typedef Controls::TGraphicControl inherited;
  28.     
  29. protected:
  30.     int FDirection;
  31.     int FNumDirections;
  32.     Graphics::TBitmap* FSelectedBitmap;
  33.     bool FShowCenter;
  34.     Graphics::TBitmap* FDirectionBitmap;
  35.     Classes::TNotifyEvent FOnChange;
  36.     void __fastcall SetDirection(int Value);
  37.     void __fastcall SetSelectedBitmap(Graphics::TBitmap* Value);
  38.     void __fastcall SetNumDirections(int Value);
  39.     void __fastcall SetShowCenter(bool Value);
  40.     void __fastcall SetDirectionBitmap(Graphics::TBitmap* Value);
  41.     DYNAMIC void __fastcall MouseDown(Controls::TMouseButton Button, Classes::TShiftState Shift, int X, 
  42.         int Y);
  43.     virtual void __fastcall Paint(void);
  44.     __property int Direction = {read=FDirection, write=SetDirection, default=0};
  45.     __property int NumDirections = {read=FNumDirections, write=SetNumDirections, default=8};
  46.     __property Graphics::TBitmap* SelectedBitmap = {read=FSelectedBitmap, write=SetSelectedBitmap};
  47.     __property bool ShowCenter = {read=FShowCenter, write=SetShowCenter, default=1};
  48.     __property Graphics::TBitmap* DirectionBitmap = {read=FDirectionBitmap, write=SetDirectionBitmap};
  49.     __property Classes::TNotifyEvent OnChange = {read=FOnChange, write=FOnChange};
  50.     
  51. public:
  52.     __fastcall virtual TEsCustomDirectionPicker(Classes::TComponent* AComponent);
  53.     __fastcall virtual ~TEsCustomDirectionPicker(void);
  54. };
  55.  
  56. class DELPHICLASS TEsDirectionPicker;
  57. class PASCALIMPLEMENTATION TEsDirectionPicker : public Esdir::TEsCustomDirectionPicker 
  58. {
  59.     typedef Esdir::TEsCustomDirectionPicker inherited;
  60.     
  61. __published:
  62.     __property Direction ;
  63.     __property Enabled ;
  64.     __property SelectedBitmap ;
  65.     __property NumDirections ;
  66.     __property ShowCenter ;
  67.     __property DirectionBitmap ;
  68.     __property OnChange ;
  69.     __property OnClick ;
  70.     __property OnDblClick ;
  71.     __property OnMouseDown ;
  72.     __property OnMouseMove ;
  73.     __property OnMouseUp ;
  74. public:
  75.     /* TEsCustomDirectionPicker.Create */ __fastcall virtual TEsDirectionPicker(Classes::TComponent* AComponent
  76.         ) : Esdir::TEsCustomDirectionPicker(AComponent) { }
  77.     /* TEsCustomDirectionPicker.Destroy */ __fastcall virtual ~TEsDirectionPicker(void) { }
  78.     
  79. };
  80.  
  81. //-- var, const, procedure ---------------------------------------------------
  82.  
  83. }    /* namespace Esdir */
  84. #if !defined(NO_IMPLICIT_NAMESPACE_USE)
  85. using namespace Esdir;
  86. #endif
  87. //-- end unit ----------------------------------------------------------------
  88. #endif    // EsDir
  89.