This DLL contains code to add a seperate window containing a progress meter. This replaces the previous Update Meter DLL. This version only have one progress meter (the old had two), however, this version are more flexible.
The functions in the DLL are:
You must call this function to create the the PowerBar. The parameters are:
Private Declare Sub pbCreate Lib "\\computer\sharedlibs\lmhPwrBar" _ (ByVal max As Single, ByVal width As Integer, ByVal title As _ String, ByVal caption As String) Public Function Create(max As Single, width As Integer, title As _ String, caption As String) pbCreate max, width, title, caption End Function
Use to set a new value for the progress meter. Function also calculates the percentage progess based on the value passed to it and the Maximum value set using the pbCreate() function.
The parameter is of type Single.
Private Declare Sub pbUpdate Lib "lmhPwrBar" (NewVal as Single)
Public Function Update(NewVal as Single) pbUpdate(NewVal) End Function
Use to remove the Progress Bar window.
Private Declare Sub pbDestroy Lib "C:\windows\lmhPwrBar" ()
Public Sub Destroy() pbDestroy End Sub
It works on my computers.
(Update: Well, it did work on my old computers. It doesn't work on computers with Windows™ 2000 or Windows™ XP)
This DLL is freeware, and can be freely distributed providing that the DLL has not been altered in any way and that the original, un-altered help-file is distributed with it. Also, the sample MDB file containing the unaltered PwrBar class module and example most be distributed with the DLL.
Please read this licence agreement before installing or
using the software: By using the software, you are agreeing
to be bound by the terms of this licence. If you do not agree
with this licence, do not install or use the software, delete
the software and all related files from the computer.
You expressly acknowledge and agree that the use of the Software is at your sole risk. The Software and any related documentation or materials are provided "AS IS" and without any warranty of any kind. The author does not warrant that the functions contained in the software will meet your requirements, or that the operation of the software will be uninterrupted or error free, or that defects in the software will be corrected. The entire risk as to the results and performance of the software is assumed by you and you assume the entire cost of servicing, repair and/or correction.
© 2003 - 2004 Lars M. Hansen