home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Controls / Visual Basic Controls.iso / vbcontrol / ahmfreec / _setup.1 / AHMTDice.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1998-12-09  |  2.6 KB  |  80 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) 'AHMTDice.pas' rev: 3.00
  6.  
  7. #ifndef AHMTDiceHPP
  8. #define AHMTDiceHPP
  9. #include <AHMFreeware.hpp>
  10. #include <Graphics.hpp>
  11. #include <Controls.hpp>
  12. #include <Classes.hpp>
  13. #include <SysUtils.hpp>
  14. #include <Messages.hpp>
  15. #include <Windows.hpp>
  16. #include <SysInit.hpp>
  17. #include <System.hpp>
  18.  
  19. //-- user supplied -----------------------------------------------------------
  20.  
  21. namespace Ahmtdice
  22. {
  23. //-- type declarations -------------------------------------------------------
  24. class DELPHICLASS TAHMDice;
  25. class PASCALIMPLEMENTATION TAHMDice : public Controls::TGraphicControl 
  26. {
  27.     typedef Controls::TGraphicControl inherited;
  28.     
  29. private:
  30.     Ahmfreeware::TAHMAboutFreeStr FAbout;
  31.     int FValue;
  32.     Graphics::TColor FDotColor;
  33.     Graphics::TColor fback;
  34.     Graphics::TColor fhback;
  35.     bool fHold;
  36.     void __fastcall AutoInitialize(void);
  37.     void __fastcall SetValue(int Value);
  38.     void __fastcall SetDotColor(Graphics::TColor Value);
  39.     void __fastcall Holdit(bool Value);
  40.     MESSAGE void __fastcall WMSize(Messages::TWMSize &Message);
  41.     void __fastcall Setback(Graphics::TColor value);
  42.     void __fastcall Sethback(Graphics::TColor value);
  43.     
  44. protected:
  45.     DYNAMIC void __fastcall Click(void);
  46.     virtual void __fastcall Paint(void);
  47.     
  48. public:
  49.     __fastcall virtual TAHMDice(Classes::TComponent* AOwner);
  50.     __fastcall virtual ~TAHMDice(void);
  51.     void __fastcall Roll(void);
  52.     virtual void __fastcall Notification(Classes::TComponent* AComponent, Classes::TOperation Operation
  53.         );
  54.     
  55. __published:
  56.     __property Ahmfreeware::TAHMAboutFreeStr About = {read=FAbout, write=FAbout};
  57.     __property OnClick ;
  58.     __property OnDblClick ;
  59.     __property OnDragDrop ;
  60.     __property OnDragOver ;
  61.     __property Graphics::TColor NormalBackground = {read=fback, write=Setback, nodefault};
  62.     __property Graphics::TColor HoldBackground = {read=fhback, write=Sethback, nodefault};
  63.     __property OnEndDrag ;
  64.     __property OnMouseDown ;
  65.     __property OnMouseMove ;
  66.     __property OnMouseUp ;
  67.     __property int Value = {read=FValue, write=SetValue, default=1};
  68.     __property bool Hold = {read=fHold, write=Holdit, default=0};
  69.     __property Graphics::TColor DotColor = {read=FDotColor, write=SetDotColor, default=0};
  70. };
  71.  
  72. //-- var, const, procedure ---------------------------------------------------
  73.  
  74. }    /* namespace Ahmtdice */
  75. #if !defined(NO_IMPLICIT_NAMESPACE_USE)
  76. using namespace Ahmtdice;
  77. #endif
  78. //-- end unit ----------------------------------------------------------------
  79. #endif    // AHMTDice
  80.