Nabend,
Ich habe ein Problem mit einer Slidebar, undzwar möchte ich das man sie nur auf jeden strich stellen kann (also nur auf 10, 20 ,30 ,40 etc bis 100).
Spoiler anzeigen
#include <GUIConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Test", 275, 103, 193, 125)
$Slider1 = GUICtrlCreateSlider(8, 8, 265, 49)
$Button1 = GUICtrlCreateButton("OK", 64, 56, 145, 33, 0)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
Switch GUICtrlRead($Slider1)
Case 10
MsgBox(0, "", "10")
Case 20
MsgBox(0, "", "20")
Case 30
MsgBox(0, "", "30")
Case 40
MsgBox(0, "", "40")
Case 50
MsgBox(0, "", "50")
Case 60
MsgBox(0, "", "60")
Case 70
MsgBox(0, "", "70")
Case 80
MsgBox(0, "", "80")
Case 90
MsgBox(0, "", "90")
Case 100
MsgBox(0, "", "100")
EndSwitch
EndSwitch
WEnd
Wie funktioniert das?
mfg kangtar