Feedback Privacy

PowerBar DLL Version 1.0

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:

pbCreate()
pbUpdate()
pbDestroy()

pbCreate(Max as Single, Width as Integer, Title as String, Prompt as String)

You must call this function to create the the PowerBar. The parameters are:

Usage:

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

 

pbUpdate(NewVal as Single)

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.

Usage:

Private Declare Sub pbUpdate Lib "lmhPwrBar" (NewVal as Single)
Public Function Update(NewVal as Single)
  pbUpdate(NewVal)
End Function

pbDestroy()

Use to remove the Progress Bar window.

Usage:

Private Declare Sub pbDestroy Lib "C:\windows\lmhPwrBar" ()
Public Sub Destroy()
  pbDestroy
End Sub

Limitations/Issues

  1. Only one progress meter can be in use at any one time.
  2. A button is created on the task bar.
  3. The height of the window cannot be altered. Helpful to me, as I don't have to test for height limitations
  4. There's no test for minium width, which could cause problems if you attempt to create a really, really tiny window. But why would you want to? It's just as easy to use the tiny SysCmd updatemeter if you want something tiny...

Disclaimer:

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)

Legal stuff:

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