ตรง progressbar อะครับ
ทำงัยให้มันเปลืยนสีอ่ะคับ
#include
#include
#Include
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 289, 101, 192, 124)
$Button1 = GUICtrlCreateButton("Button1", 16, 8, 75, 25)
$Button2 = GUICtrlCreateButton("Button2", 96, 8, 75, 25)
$Button3 = GUICtrlCreateButton("Button3", 176, 8, 75, 25)
$Progress1 = GUICtrlCreateProgress(16, 48, 241, 17)
GUICtrlSetData($Progress1, 50)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
_SendMessage(GUICtrlGetHandle($Progress1), $PBM_SETSTATE, 0x0003,0)
Case $Button2
_SendMessage(GUICtrlGetHandle($Progress1), $PBM_SETSTATE, 0x0002,0)
Case $Button3
_SendMessage(GUICtrlGetHandle($Progress1), $PBM_SETSTATE, 0x0001,0)
EndSwitch
WEnd
aut พิมพ์ว่า:จัดปาย
#include <GUIConstantsEx.au3>
#include <ProgressConstants.au3>
#Include <SendMessage.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 289, 101, 192, 124)
$Button1 = GUICtrlCreateButton("Button1", 16, 8, 75, 25)
$Button2 = GUICtrlCreateButton("Button2", 96, 8, 75, 25)
$Button3 = GUICtrlCreateButton("Button3", 176, 8, 75, 25)
$Progress1 = GUICtrlCreateProgress(16, 48, 241, 17)
GUICtrlSetData($Progress1, 50)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
_SendMessage(GUICtrlGetHandle($Progress1), $PBM_SETSTATE, 0x0003,0)
Case $Button2
_SendMessage(GUICtrlGetHandle($Progress1), $PBM_SETSTATE, 0x0002,0)
Case $Button3
_SendMessage(GUICtrlGetHandle($Progress1), $PBM_SETSTATE, 0x0001,0)
EndSwitch
WEnd
|
|