Lemming
Joined: 20 Dec 2005 Posts: 150 Location: Malaysia
|
Posted: Wed Jun 27, 2007 6:30 am Post subject: Display current value of slider |
|
|
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... |
|