hab mal wieder ne kleine frage, undzwar will ich, wenn ich ein button drücke die progressbar sich jedesmal um 20erhöht, aber bekomm das iwie nicht hin ...
in internet hab ich dazu nicht wirklich was gefunden....
mein bsp. code:
so wird es nur um 20erhöht, aber mehr nicht...
MfG
in internet hab ich dazu nicht wirklich was gefunden....
mein bsp. code:
PHP Code:
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <ProgressConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Test", 271, 168, 192, 124)
GUISetBkColor(0x000000)
$Button1 = GUICtrlCreateButton("weiter", 32, 80, 73, 41, $WS_GROUP)
$Button2 = GUICtrlCreateButton("abbrechen", 128, 80, 73, 41, $WS_GROUP)
$Progress1 = GUICtrlCreateProgress(12, 136, 237, 17)
GUICtrlSetData($Progress1,0)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
weiter()
Case $Button2
Exit
EndSwitch
WEnd
Func weiter()
GUICtrlSetData($Progress1, +20)
EndFunc
MfG