MMBMPLED.INT 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. {========================================================================}
  2. {= (c) 1995-98 SwiftSoft Ronald Dittrich =}
  3. {========================================================================}
  4. {= All Rights Reserved =}
  5. {========================================================================}
  6. {= D 01099 Dresden = Fax.: +49 (0)351-8037944 =}
  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: 03.04.98 - 21:13:31 $ =}
  24. {========================================================================}
  25. unit MMBmpLED;
  26. {$I COMPILER.INC}
  27. interface
  28. uses
  29. Windows,
  30. SysUtils,
  31. Messages,
  32. Classes,
  33. Graphics,
  34. Controls,
  35. CommCtrl,
  36. ExtCtrls,
  37. Menus,
  38. Forms,
  39. DsgnIntf,
  40. MMObj,
  41. MMUtils,
  42. MMString,
  43. MMBmpLst,
  44. MMObsrv;
  45. type
  46. {-- TMMCustomBitmapLEDDigit -----------------------------------------------}
  47. TMMCustomBitmapLEDDigit = class(TMMCustomBitmapListControl);
  48. {-- TMMBitmapLEDDigit ------------------------------------------------------}
  49. TMMBitmapLEDDigit = class(TMMCustomBitmapLEDDigit)
  50. public
  51. constructor Create (AOwner: TComponent); override;
  52. procedure Increase;
  53. procedure Decrease;
  54. published
  55. { Events }
  56. property OnClick;
  57. property OnDblClick;
  58. property OnMouseDown;
  59. property OnMouseMove;
  60. property OnMouseUp;
  61. property OnRollForward: TNotifyEvent read FOnRollForward write FOnRollForward;
  62. property OnRollBackward: TNotifyEvent read FOnRollBackward write FOnRollBackward;
  63. property Color default clBlack;
  64. property ParentColor;
  65. property ParentShowHint;
  66. property ShowHint;
  67. property Visible;
  68. property Width default 11;
  69. property Height default 21;
  70. property BitmapList;
  71. property BitmapIndex;
  72. property Enabled: Boolean read GetEnabled write SetEnabled default True;
  73. property MinValue: integer read FMinValue write SetMinValue default 0;
  74. property MaxValue: integer read FMaxValue write SetMaxValue default 9;
  75. property Value: Longint read FValue write SetValue default 0;
  76. property ZeroBlank: Boolean read FZeroBlank write SetZeroBlank default False;
  77. property CascadeValues: Boolean read FCascade write SetCascade default False;
  78. property Connect: TMMCustomBitmapLEDDigit read FConnect write SetConnect;
  79. end;
  80. {-- TMMBitmapLEDDigitConnectEditor ----------------------------------------}
  81. TMMBitmapLEDDigitConnectEditor = class(TComponentProperty)
  82. public
  83. procedure GetValues(Proc: TGetStrProc); override;
  84. end;
  85. TMMScrollDirection = (sdLeft,sdRight);
  86. {-- TMMBitmapLabel --------------------------------------------------------}
  87. TMMBitmapLabel = class(TMMCustomBitmapListControl)
  88. public
  89. constructor Create (AOwner: TComponent); override;
  90. destructor Destroy; override;
  91. procedure Start;
  92. procedure Stop;
  93. published
  94. { Events }
  95. property OnClick;
  96. property OnDblClick;
  97. property OnMouseDown;
  98. property OnMouseMove;
  99. property OnMouseUp;
  100. property OnChange: TNotifyEvent read FOnChange write FOnChange;
  101. property OnBegin: TNotifyEvent read FOnBegin write FOnBegin;
  102. property OnStep: TNotifyEvent read FOnStep write FOnStep;
  103. property OnEnd: TNotifyEvent read FOnEnd write FOnEnd;
  104. property Align;
  105. property Caption;
  106. property ParentShowHint;
  107. property PopupMenu;
  108. property ShowHint;
  109. property Visible;
  110. property Width default 11;
  111. property Height default 13;
  112. property AutoSize: Boolean read FAutoSize write SetAutoSize default True;
  113. property Enabled;
  114. property BitmapList;
  115. property BitmapIndex;
  116. property NumChars: integer read FNumChars write SetNumChars default 12;
  117. property CharSpace: integer read FCharSpace write SetCharSpace default 0;
  118. property ScrollSpeed: integer read FSpeed write SetSpeed default 100;
  119. property StartStep: integer read FStartStep write SetStartStep default 0;
  120. property CurrentStep: integer read FCurStep write SetCurStep default 0;
  121. property AutoScroll: Boolean read FAutoScroll write SetAutoScroll default False;
  122. property ScrollDirection: TMMScrollDirection read FScrollDir write SetScrollDir default sdLeft;
  123. end;
  124. implementation