UNIT1.PAS 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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: 06.09.98 - 14:39:27 $ =}
  24. {========================================================================}
  25. unit Unit1;
  26. interface
  27. uses
  28. SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
  29. Forms, Dialogs, ExtCtrls, StdCtrls, MMObj, MMLEDLbl, MMLabel;
  30. type
  31. TForm1 = class(TForm)
  32. Timer1: TTimer;
  33. MMLEDLabel1: TMMLEDLABEL;
  34. MMLEDLabel2: TMMLEDLABEL;
  35. MMLEDLabel3: TMMLEDLABEL;
  36. MMLEDLabel4: TMMLEDLABEL;
  37. MMLEDLabel5: TMMLEDLABEL;
  38. MMLEDLabel6: TMMLEDLABEL;
  39. MMLEDLabel7: TMMLEDLABEL;
  40. MMLabel1: TMMLabel;
  41. procedure Timer1Timer(Sender: TObject);
  42. procedure FormCreate(Sender: TObject);
  43. private
  44. DirDown: Boolean;
  45. { Private-Deklarationen }
  46. public
  47. { Public-Deklarationen }
  48. end;
  49. var
  50. Form1: TForm1;
  51. implementation
  52. {$R *.DFM}
  53. procedure TForm1.Timer1Timer(Sender: TObject);
  54. begin
  55. with MMLEDLabel6 do
  56. begin
  57. if DirDown then CurrentStep := CurrentStep - 1
  58. else CurrentStep := CurrentStep + 1;
  59. if CurrentStep = Length(Caption)-1 then
  60. DirDown := True
  61. else if CurrentStep = 0 then
  62. DirDown := False;
  63. end;
  64. end;
  65. procedure TForm1.FormCreate(Sender: TObject);
  66. begin
  67. DirDown := False;
  68. end;
  69. end.