cueclub Posted September 12, 2010 Share Posted September 12, 2010 (edited) I have searched the forums. And perhaps I am overlooking it. Is there a way to set a slider to a default position? Currently I have to keep resetting it. And was hoping a default position could be read from an ini.... If there is a post and I have missed it, perhaps someone could point me in the right direction. Thanks Cue Edited September 12, 2010 by cueclub Link to comment Share on other sites More sharing options...
somdcomputerguy Posted September 12, 2010 Share Posted September 12, 2010 I use GUICtrlSetData and IniRead to set a 'default' position for a slider bar. A code snippet follows..$Slider_MaxVol = GUICtrlCreateSlider(170, 70, 85, 20) GUICtrlSetData($Slider_MaxVol, IniRead($sIni, "Levels", "MaxVolume", 25)) - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change. Link to comment Share on other sites More sharing options...
cueclub Posted September 12, 2010 Author Share Posted September 12, 2010 It would be so much easier if you could just throw a default variable in there like most other thing... Hint Hint.... ty sir Cue Link to comment Share on other sites More sharing options...
somdcomputerguy Posted September 12, 2010 Share Posted September 12, 2010 You bet. Hope it helps.. - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change. Link to comment Share on other sites More sharing options...
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