MMLEDLBL.INT 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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 MMLEDLbl;
  26. {$I COMPILER.INC}
  27. interface
  28. uses
  29. {$IFDEF WIN32}
  30. Windows,
  31. {$ELSE}
  32. WinTypes,
  33. WinProcs,
  34. {$ENDIF}
  35. SysUtils,
  36. Messages,
  37. Classes,
  38. Graphics,
  39. Controls,
  40. Forms,
  41. Dialogs,
  42. ExtCtrls,
  43. Menus,
  44. MMObj,
  45. MMUtils,
  46. MMString;
  47. type
  48. TMMLEDFontSize =(fs11x13,fs16x20);
  49. {-- TMMLEDLabel ------------------------------------------------------}
  50. TMMLEDLABEL = class(TMMGraphicControl)
  51. public
  52. constructor Create (AOwner: TComponent); override;
  53. destructor Destroy; override;
  54. procedure Start;
  55. procedure Stop;
  56. published
  57. { Events }
  58. property OnClick;
  59. property OnDblClick;
  60. property OnMouseDown;
  61. property OnMouseMove;
  62. property OnMouseUp;
  63. property OnBegin: TNotifyEvent read FOnBegin write FOnBegin;
  64. property OnStep: TNotifyEvent read FOnStep write FOnStep;
  65. property OnEnd: TNotifyEvent read FOnEnd write FOnEnd;
  66. property Align;
  67. property Caption;
  68. property Color default clBlack;
  69. property ParentShowHint;
  70. property ParentColor;
  71. property PopupMenu;
  72. property ShowHint;
  73. property Visible;
  74. property Width default 11;
  75. property Height default 13;
  76. property AutoSize: Boolean read FAutoSize write SetAutoSize default True;
  77. property Alignment: TAlignment read FAlignment write SetAlignment default taLeftJustify;
  78. property Enabled;
  79. property FontSize: TMMLEDFontSize read FSize write SetSize default fs16X20;
  80. property DrawInactive: Boolean read FDrawInactive write SetDrawInactive default True;
  81. property InactiveColor: TColor read FInactiveColor write SetInactiveColor default clGreen;
  82. property LEDColor: TColor read FLEDColor write SetLEDColor default clLime;
  83. property NumChars: integer read FNumChars write SetNumChars default 12;
  84. property LEDSpace: integer read FLEDSpace write SetLEDSpace default 1;
  85. property ScrollSpeed: integer read FSpeed write SetSpeed default 100;
  86. property StartStep: integer read FStartStep write SetStartStep default 0;
  87. property CurrentStep: integer read FCurStep write SetCurStep default 0;
  88. property AutoScroll: Boolean read FAutoScroll write SetAutoScroll default False;
  89. property Bevel;
  90. end;
  91. implementation