| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141 |
- {========================================================================}
- {= (c) 1995-98 SwiftSoft Ronald Dittrich =}
- {========================================================================}
- {= All Rights Reserved =}
- {========================================================================}
- {= D 01099 Dresden = Fax.: +49 (0)351-8037944 =}
- {= 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: 03.04.98 - 21:13:31 $ =}
- {========================================================================}
- unit MMBmpLED;
- {$I COMPILER.INC}
- interface
- uses
- Windows,
- SysUtils,
- Messages,
- Classes,
- Graphics,
- Controls,
- CommCtrl,
- ExtCtrls,
- Menus,
- Forms,
- DsgnIntf,
- MMObj,
- MMUtils,
- MMString,
- MMBmpLst,
- MMObsrv;
- type
- {-- TMMCustomBitmapLEDDigit -----------------------------------------------}
- TMMCustomBitmapLEDDigit = class(TMMCustomBitmapListControl);
- {-- TMMBitmapLEDDigit ------------------------------------------------------}
- TMMBitmapLEDDigit = class(TMMCustomBitmapLEDDigit)
- public
- constructor Create (AOwner: TComponent); override;
- procedure Increase;
- procedure Decrease;
- published
- { Events }
- property OnClick;
- property OnDblClick;
- property OnMouseDown;
- property OnMouseMove;
- property OnMouseUp;
- property OnRollForward: TNotifyEvent read FOnRollForward write FOnRollForward;
- property OnRollBackward: TNotifyEvent read FOnRollBackward write FOnRollBackward;
- property Color default clBlack;
- property ParentColor;
- property ParentShowHint;
- property ShowHint;
- property Visible;
- property Width default 11;
- property Height default 21;
- property BitmapList;
- property BitmapIndex;
- property Enabled: Boolean read GetEnabled write SetEnabled default True;
- property MinValue: integer read FMinValue write SetMinValue default 0;
- property MaxValue: integer read FMaxValue write SetMaxValue default 9;
- property Value: Longint read FValue write SetValue default 0;
- property ZeroBlank: Boolean read FZeroBlank write SetZeroBlank default False;
- property CascadeValues: Boolean read FCascade write SetCascade default False;
- property Connect: TMMCustomBitmapLEDDigit read FConnect write SetConnect;
- end;
- {-- TMMBitmapLEDDigitConnectEditor ----------------------------------------}
- TMMBitmapLEDDigitConnectEditor = class(TComponentProperty)
- public
- procedure GetValues(Proc: TGetStrProc); override;
- end;
- TMMScrollDirection = (sdLeft,sdRight);
- {-- TMMBitmapLabel --------------------------------------------------------}
- TMMBitmapLabel = class(TMMCustomBitmapListControl)
- public
- constructor Create (AOwner: TComponent); override;
- destructor Destroy; override;
- procedure Start;
- procedure Stop;
- published
- { Events }
- property OnClick;
- property OnDblClick;
- property OnMouseDown;
- property OnMouseMove;
- property OnMouseUp;
- property OnChange: TNotifyEvent read FOnChange write FOnChange;
- property OnBegin: TNotifyEvent read FOnBegin write FOnBegin;
- property OnStep: TNotifyEvent read FOnStep write FOnStep;
- property OnEnd: TNotifyEvent read FOnEnd write FOnEnd;
- property Align;
- property Caption;
- property ParentShowHint;
- property PopupMenu;
- property ShowHint;
- property Visible;
- property Width default 11;
- property Height default 13;
- property AutoSize: Boolean read FAutoSize write SetAutoSize default True;
- property Enabled;
- property BitmapList;
- property BitmapIndex;
- property NumChars: integer read FNumChars write SetNumChars default 12;
- property CharSpace: integer read FCharSpace write SetCharSpace default 0;
- property ScrollSpeed: integer read FSpeed write SetSpeed default 100;
- property StartStep: integer read FStartStep write SetStartStep default 0;
- property CurrentStep: integer read FCurStep write SetCurStep default 0;
- property AutoScroll: Boolean read FAutoScroll write SetAutoScroll default False;
- property ScrollDirection: TMMScrollDirection read FScrollDir write SetScrollDir default sdLeft;
- end;
- implementation
|