| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114 |
- {========================================================================}
- {= (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 MMLabel;
- {$I COMPILER.INC}
- interface
- uses
- {$IFDEF WIN32}
- Windows,
- {$ELSE}
- WinTypes,
- WinProcs,
- {$ENDIF}
- SysUtils,
- Messages,
- Classes,
- Graphics,
- Controls,
- StdCtrls,
- Forms,
- MMObj,
- MMUtils,
- MMString;
- type
- TMMLabelDepth = 0..20;
- TMMLabelDirection = (ldNone, ldUp, ldUpRight, ldRight, ldDownRight,
- ldDown, ldDownLeft, ldLeft, ldUpLeft);
- TMMLabelStyle = (lsNone,lsCustom,lsRaised,lsSunken,lsShadow,lsFlying);
- { Range for rotation }
- TMMAngle = 0..360;
- { Options for varying the shadow/highlight for the label }
- TMMLabelOption = (loNormal, loExtrude);
- type
- {-- TMMLabel ----------------------------------------------------------}
- TMMLabel = class(TMMGraphicControl)
- public
- constructor Create(AOwner:TComponent); override;
- destructor Destroy; override;
- published
- property OnClick;
- property OnDblClick;
- property OnDragDrop;
- property OnDragOver;
- property OnEndDrag;
- property OnMouseDown;
- property OnMouseMove;
- property OnMouseUp;
- property Align;
- property Caption;
- property Color;
- property Cursor;
- property DragCursor;
- property DragMode;
- property Enabled;
- property Font;
- property ParentColor;
- property ParentFont;
- property ParentShowHint;
- property ShowHint;
- property Visible;
- property Width default 142;
- property Height default 33;
- property Bevel;
- property Alignment: TAlignment read FAlignment write SetAlignment default taLeftJustify;
- property Transparent: Boolean read FTransparent write SetTransparent default True;
- property Bitmap: TBitmap read FBitmap write SetBitmap;
- property DepthHighlight: TMMLabelDepth index 0 read FDepthHighlight write SetDepth default 1;
- property DepthShadow: TMMLabelDepth index 1 read FDepthShadow write SetDepth default 1;
- property DirectionHighlight: TMMLabelDirection index 0 read FDirectionHighlight write SetDirection default ldUpLeft;
- property DirectionShadow: TMMLabelDirection index 1 read FDirectionShadow write SetDirection default ldDownRight;
- property ColourHighlight: TColor index 0 read FColorHighlight write SetColor default clWhite;
- property ColourShadow: TColor index 1 read FColorShadow write SetColor default clGray;
- property StyleHighlight: TMMLabelOption index 0 read FStyleHighlight write SetStyle default loNormal;
- property StyleShadow: TMMLabelOption index 1 read FStyleShadow write SetStyle default loNormal;
- property EffectStyle: TMMLabelStyle read FEffectStyle write SetEffect default lsRaised;
- property AsButton: Boolean read FAsButton write SetAsButton default False;
- property Angle: TMMAngle read FAngle write SetAngle default 0;
- end;
- implementation
|