Jump to content
Sign in to follow this  
cueclub

[RESOLVED] Default Slider Position

Recommended Posts

cueclub

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 by cueclub

Share this post


Link to post
Share on other sites
somdcomputerguy

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.

Share this post


Link to post
Share on other sites
cueclub

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

Share this post


Link to post
Share on other sites
somdcomputerguy

You bet. Hope it helps.. ;)


- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.