| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- {========================================================================}
- {= (c) 1995-98 SwiftSoft Ronald Dittrich =}
- {========================================================================}
- {= All Rights Reserved =}
- {========================================================================}
- {= D 01099 Dresden = Tel.: +0351-8012255 =}
- {= Loewenstr.7a = info@swiftsoft.de =}
- {========================================================================}
- {= Actual versions on http://www.swiftsoft.de/mmtools.html =}
- {========================================================================}
- {= This code is for reference purposes only and may not be copied or =}
- {= distributed in any format electronic or otherwise except one copy =}
- {= for backup purposes. =}
- {= =}
- {= No Delphi Component Kit or Component individually or in a collection=}
- {= subclassed or otherwise from the code in this unit, or associated =}
- {= .pas, .dfm, .dcu, .asm or .obj files may be sold or distributed =}
- {= without express permission from SwiftSoft. =}
- {= =}
- {= For more licence informations please refer to the associated =}
- {= HelpFile. =}
- {========================================================================}
- {= $Date: 20.01.1998 - 18:00:00 $ =}
- {========================================================================}
- unit MMButton;
- {$C PRELOAD}
- {$I COMPILER.INC}
- interface
- uses
- {$IFDEF WIN32}
- Windows,
- {$ELSE}
- WinTypes,
- WinProcs,
- {$ENDIF}
- Messages,
- Classes,
- Controls,
- Forms,
- Graphics,
- StdCtrls,
- ExtCtrls,
- Buttons,
- MMObj,
- MMUtils;
- type
- TMMSpeedButton = class(TMMGraphicControl)
- public
- constructor Create(AOwner: TComponent); override;
- destructor Destroy; override;
- procedure Click; override;
- published
- property OnClick;
- property OnDblClick;
- property OnMouseDown;
- property OnMouseMove;
- property OnMouseUp;
- property AllowAllUp: Boolean read FAllowAllUp write SetAllowAllUp default False;
- property GroupIndex: Integer read FGroupIndex write SetGroupIndex default 0;
- { Ensure group index is declared before Down }
- property Down: Boolean read FDown write SetDown default False;
- property Caption;
- property Enabled;
- property Font;
- property Glyph: TBitmap read GetGlyph write SetGlyph;
- property Layout: TButtonLayout read FLayout write SetLayout default blGlyphLeft;
- property Margin: Integer read FMargin write SetMargin default -1;
- property NumGlyphs: TNumGlyphs read GetNumGlyphs write SetNumGlyphs default 1;
- property ParentFont;
- property ParentShowHint;
- property ShowHint;
- property Spacing: Integer read FSpacing write SetSpacing default 4;
- property Visible;
- property Bevel: TBevelStyle read FBevel write SetBevel default bsRaised;
- property DownColor: TColor read FDownColor write SetDownColor default clWhite;
- property BevelColor: TColor read FBevelColor write SetBevelColor default clBlack;
- end;
- implementation
|