MMBUTTON.INT 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. {========================================================================}
  2. {= (c) 1995-98 SwiftSoft Ronald Dittrich =}
  3. {========================================================================}
  4. {= All Rights Reserved =}
  5. {========================================================================}
  6. {= D 01099 Dresden = Tel.: +0351-8012255 =}
  7. {= Loewenstr.7a = info@swiftsoft.de =}
  8. {========================================================================}
  9. {= Actual versions on http://www.swiftsoft.de/mmtools.html =}
  10. {========================================================================}
  11. {= This code is for reference purposes only and may not be copied or =}
  12. {= distributed in any format electronic or otherwise except one copy =}
  13. {= for backup purposes. =}
  14. {= =}
  15. {= No Delphi Component Kit or Component individually or in a collection=}
  16. {= subclassed or otherwise from the code in this unit, or associated =}
  17. {= .pas, .dfm, .dcu, .asm or .obj files may be sold or distributed =}
  18. {= without express permission from SwiftSoft. =}
  19. {= =}
  20. {= For more licence informations please refer to the associated =}
  21. {= HelpFile. =}
  22. {========================================================================}
  23. {= $Date: 20.01.1998 - 18:00:00 $ =}
  24. {========================================================================}
  25. unit MMButton;
  26. {$C PRELOAD}
  27. {$I COMPILER.INC}
  28. interface
  29. uses
  30. {$IFDEF WIN32}
  31. Windows,
  32. {$ELSE}
  33. WinTypes,
  34. WinProcs,
  35. {$ENDIF}
  36. Messages,
  37. Classes,
  38. Controls,
  39. Forms,
  40. Graphics,
  41. StdCtrls,
  42. ExtCtrls,
  43. Buttons,
  44. MMObj,
  45. MMUtils;
  46. type
  47. TMMSpeedButton = class(TMMGraphicControl)
  48. public
  49. constructor Create(AOwner: TComponent); override;
  50. destructor Destroy; override;
  51. procedure Click; override;
  52. published
  53. property OnClick;
  54. property OnDblClick;
  55. property OnMouseDown;
  56. property OnMouseMove;
  57. property OnMouseUp;
  58. property AllowAllUp: Boolean read FAllowAllUp write SetAllowAllUp default False;
  59. property GroupIndex: Integer read FGroupIndex write SetGroupIndex default 0;
  60. { Ensure group index is declared before Down }
  61. property Down: Boolean read FDown write SetDown default False;
  62. property Caption;
  63. property Enabled;
  64. property Font;
  65. property Glyph: TBitmap read GetGlyph write SetGlyph;
  66. property Layout: TButtonLayout read FLayout write SetLayout default blGlyphLeft;
  67. property Margin: Integer read FMargin write SetMargin default -1;
  68. property NumGlyphs: TNumGlyphs read GetNumGlyphs write SetNumGlyphs default 1;
  69. property ParentFont;
  70. property ParentShowHint;
  71. property ShowHint;
  72. property Spacing: Integer read FSpacing write SetSpacing default 4;
  73. property Visible;
  74. property Bevel: TBevelStyle read FBevel write SetBevel default bsRaised;
  75. property DownColor: TColor read FDownColor write SetDownColor default clWhite;
  76. property BevelColor: TColor read FBevelColor write SetBevelColor default clBlack;
  77. end;
  78. implementation