This is an unfinished library. It will include more as time goes on, but I wanted to release the first version now because of the needs of Merlin2049.
This is version 1.0 and only includes a countdown timer. A demo project is inside the zip file. Extract the files and copy the MLTime.jar and MLTime.xml to your additional libraries directory.
MLTime
Author: Jem Miller - Missing Link Software
Version: 1
Version 1.0 - First release
.
This is version 1.0 and only includes a countdown timer. A demo project is inside the zip file. Extract the files and copy the MLTime.jar and MLTime.xml to your additional libraries directory.
MLTime
Author: Jem Miller - Missing Link Software
Version: 1
- MLCountDownTimer
Events:- onFinish ( As )
- onTick (Remaining as Long As )
- isPaused As Boolean
- IsInitialized As Boolean
- Pause
Pauses the countdown timer - Resume
Resumes the countdown timer from where it left off - Start (Millisec As Long, Interval As Long, EventName As String)
Starts a countdown timer
MiliSec - Total time for the countdown in milliseconds
Interval - Amount of time between updates in milliseconds
EventName - The name of the event to use (Time_onTick for example)
Example using mltime as the Dim'ed class name
mltime.Start(60000,1000) will start a countdown timer for 60 seconds and will fire the onTick event every 1 second
This method triggers 2 events that you can use. Assuming you initialize the class with the event name of Time, they would look like this :
Time_onTick(Remaining as Long)
Remaining is the countdown time remaining until done in milliseconds
Time_onFinish
This event fires when the countdown is finished - Stop
Stops the countdown timer
Version 1.0 - First release
.
Attachments
Last edited: