| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- {========================================================================}
- {= (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: 06.09.98 - 14:39:27 $ =}
- {========================================================================}
- unit Unit1;
- interface
- uses
- SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
- Forms, Dialogs, ExtCtrls, StdCtrls, MMObj, MMLEDLbl, MMLabel;
- type
- TForm1 = class(TForm)
- Timer1: TTimer;
- MMLEDLabel1: TMMLEDLABEL;
- MMLEDLabel2: TMMLEDLABEL;
- MMLEDLabel3: TMMLEDLABEL;
- MMLEDLabel4: TMMLEDLABEL;
- MMLEDLabel5: TMMLEDLABEL;
- MMLEDLabel6: TMMLEDLABEL;
- MMLEDLabel7: TMMLEDLABEL;
- MMLabel1: TMMLabel;
- procedure Timer1Timer(Sender: TObject);
- procedure FormCreate(Sender: TObject);
- private
- DirDown: Boolean;
- { Private-Deklarationen }
- public
- { Public-Deklarationen }
- end;
- var
- Form1: TForm1;
- implementation
- {$R *.DFM}
- procedure TForm1.Timer1Timer(Sender: TObject);
- begin
- with MMLEDLabel6 do
- begin
- if DirDown then CurrentStep := CurrentStep - 1
- else CurrentStep := CurrentStep + 1;
- if CurrentStep = Length(Caption)-1 then
- DirDown := True
- else if CurrentStep = 0 then
- DirDown := False;
- end;
- end;
- procedure TForm1.FormCreate(Sender: TObject);
- begin
- DirDown := False;
- end;
- end.
|