madmorgan Posted February 23, 2010 Posted February 23, 2010 (edited) hello all, question about slide bars. I have one that has a limit from 0 to 100 and when i load my script it is all ways set at 0% and then i can move it to 100% fine. but my question is how can i set it at 50% when i run my script? my code so far $Form1 = GUICreate("", 667, 546, 183, 124) $Slider1 = GUICtrlCreateSlider(328, 296, 150, 45) $slidelim = GUICtrlSetLimit($Slider1,100,2) GUISetState(@SW_SHOW) Edited February 23, 2010 by madmorgan
kaotkbliss Posted February 23, 2010 Posted February 23, 2010 set the data to start it at 50 $Form1 = GUICreate("", 667, 546, 183, 124) $Slider1 = GUICtrlCreateSlider(328, 296, 150, 45) $slidelim = GUICtrlSetLimit($Slider1,100,2) $start=50 GUICtrlSetData($Slider1,$start) GUISetState(@SW_SHOW) 010101000110100001101001011100110010000001101001011100110010000 001101101011110010010000001110011011010010110011100100001 My Android cat and mouse gamehttps://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek We're gonna need another Timmy!
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now