Jump to content

progress bar problem


d0n
 Share

Recommended Posts

Hi i am using the GDIpProgressbar but whenever i try to close the gui with this script it will crash on me, is there anyway to fix it?

I am really just looking for a way to show text inside the progress bar, the color is more of an extra feature for me

#include <GUIConstantsEx.au3>
#include <GDIpProgress.au3>
#include <WindowsConstants.au3>

Opt("GUIOnEventMode", 1)

$Form1 = GUICreate("0", 315, 260)
$Tab1_Progress1 = _ProgressCreate(20,40,150,20,0xFF0000,0xFF0000,0xFFFFFF,0xFFFFFF)
$Tab1_Progress2 = _ProgressCreate(20,70,150,20,0x0080BF,0x0080BF,0xFFFFFF,0xFFFFFF)
$Tab1_Progress3 = _ProgressCreate(20,100,150,20,0xFFFF00,0xFFFF00,0xFFFFFF,0xFFFFFF)
GUISetState(@SW_SHOW)

Gui()

Func Gui()
    GUISetOnEvent($GUI_EVENT_CLOSE, "SpecialEvents")

    ; Just idle around
    While 1
        Sleep(10)
    WEnd
EndFunc

Func SpecialEvents()
    Exit
EndFunc   ;==>SpecialEvents
Edited by d0n
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...