Jump to content
Sign in to follow this  

ProgressBar Problem

Recommended Posts


How come progress bars can't go over 100 :) maybe because Jon didn't think we would be making games

#include <GUIConstants.au3>

$Form1 = GUICreate("Form1", 633, 452, 193, 125)
$Progress1 = GUICtrlCreateProgress(64, 64, 150, 17)
GUICtrlSetData($Progress1 , 1000)
$Button1 = GUICtrlCreateButton("Button1", 72, 104, 75, 25, 0)

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
        Case $Button1
            GUICtrlSetData($Progress1 , GUICtrlRead($Progress1) - 10)

Share this post

Link to post
Share on other sites

LOL... what?

What is the need for over 100?

0 - 100 is just empty to full

It is up to you to determine what the variable is equal to.

In other words if I want a life bar where the life can go to 150%, I would make Progressbar 100 = 150% life ... Progressbar 50 = 75% life.

Share this post

Link to post
Share on other sites

yea I guess I can throw some math in there but I guess for now ill just use labels and worry about the progress bar later.

Share this post

Link to post
Share on other sites

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
Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.