Jump to content

Progress bar


Recommended Posts

Hi all! :) i have a problem with my Progress bar..

This is my code (just a small part)

$nbfois = GUICtrlCreateInput("Nombre de fois", 24, 144, 153, 21)
$progressbar_traitement = GUICtrlCreateProgress(48, 400, 121, 33)

For $i = 1 To $s Step 1
GUICtrlSetData($progressbar_traitement, $i)


Next

The problem is if $1 = More to 100 the progress bar not work corectly..

What can i do?

Thanks

Link to comment
Share on other sites

Hi all! :) i have a problem with my Progress bar..

This is my code (just a small part)

$nbfois = GUICtrlCreateInput("Nombre de fois", 24, 144, 153, 21)
$progressbar_traitement = GUICtrlCreateProgress(48, 400, 121, 33)

For $i = 1 To $s Step 1
GUICtrlSetData($progressbar_traitement, $i)


Next

The problem is if $1 = More to 100 the progress bar not work corectly..

What can i do?

Thanks

Instead of
GUICtrlSetData($progressbar_traitement, $i)

Try

GUICtrlSetData($progressbar_traitement, $i * 100 / $s)
Link to comment
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
 Share

  • Recently Browsing   0 members

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