Jump to content

Recommended Posts

Posted (edited)

Hi All,

Im wanting to create a scoreboard which has 5 progress bar's with a different image for each progress bar that moves along with the figures simply attached to a workbook or even a txt or ini file is fine..

Basically each person will have there own image (face or funny image or whatever) that is small that moves along the progress bar as it is updated day to day / week on week.

how can i accomplish this? - more importantly.. where should i look to find information that will help me to accomplish this..

Edited by 13lack13lade
Posted

If I'm understanding your post correctly, this one from MrCreatoR may help.

#include <GUIConstants.au3>

$Gradient_Progress_Bar_Img = @ScriptDir & "\Gradient_Progress_Bar.bmp"

If Not FileExists($Gradient_Progress_Bar_Img) Then _
    InetGet("http://creator-lab.ucoz.ru/Images/Gradient_Progress_Bar.bmp", $Gradient_Progress_Bar_Img)

$Gui = GUICreate("Gradient Progress Bar", 340, 100)
GUISetBkColor(0xC0C0C0)

GUICtrlCreateLabel("Progress Bar", 20, 15, 300, 15)
GUICtrlCreatePic($Gradient_Progress_Bar_Img, 20, 30, 300, 15)
$Cover_Label = GUICtrlCreateLabel("", 20, 30, 300, 15)
$Go_Button = GUICtrlCreateButton("GO!", 20, 70, 40, 20)
GUISetState(@SW_SHOW)

While 1
    Switch GUIGetMsg()
        Case $GUI_EVENT_CLOSE
            Exit
        Case $Go_Button
            GUICtrlSetData($Go_Button, "Abort!")

            For $i = 15 To 315
                ControlMove($Gui, "", $Cover_Label, $i + 5, 30, 315 - $i, 15)

                $nMsg = GUIGetMsg()

                If $nMsg = $Go_Button Then
                    ControlMove($Gui, "", $Cover_Label, 20, 30, 300, 15)
                    ExitLoop
                EndIf

                If $nMsg = $GUI_EVENT_CLOSE Then ExitLoop 2

                Sleep(20)
            Next

            GUICtrlSetData($Go_Button, "GO!")
    EndSwitch
WEnd

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...