AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Display current value of slider

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Lemming



Joined: 20 Dec 2005
Posts: 150
Location: Malaysia

PostPosted: Wed Jun 27, 2007 6:30 am    Post subject: Display current value of slider Reply with quote

How does one display the current value of a slider selection within a GUI? I know there's a Tooltip option, but it only shows the value when the user is dragging the slider.

I'm looking for a more permanent indication of the slider's value.

Here's my gutted code:

Code:
; brightness slider
Gui, Add, Text, x320 y16 w90 h30 , Brightness
Gui, Add, Slider, x308 y47 w90 Left Tooltip Range0-10 vBriteSlide , %DefaultBrite%

; Buttons
Gui, Add, Button, x20 y120 w50 h28 gRefresh , Refresh
Gui, Add, Button, x75 y120 w50 h28 gConvert , Convert
Gui, Add, Button, x130 y120 w50 h28 gCancel , Cancel

;
Gui, Show, x206 y196 h180 w450, Pict Saver
Return

Convert:
Gui, Submit, NoHide  ; Save the input from the user to each control's associated variable.
ExitApp

Refresh:
;
ExitApp

Cancel:
ExitApp

GuiClose:
ExitApp


Preferably, the current slider value should be indicated, and updated in real time.

I'm sure someone has done this before...
Back to top
View user's profile Send private message
nick



Joined: 24 Aug 2005
Posts: 345
Location: Berlin / Germany

PostPosted: Wed Jun 27, 2007 6:45 am    Post subject: Reply with quote

http://www.autohotkey.com/forum/post-127319.html#127319
_________________
nick

denick @ http://de.autohotkey.com/forum/
Back to top
View user's profile Send private message
Lemming



Joined: 20 Dec 2005
Posts: 150
Location: Malaysia

PostPosted: Wed Jun 27, 2007 7:06 am    Post subject: Reply with quote

doh! didn't see that posting. It's exactly what I'm looking for. Thanks.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group