Jump to content

Vertical sliders...


sshrum
 Share

Recommended Posts

#include <GUIConstants.au3>

GUICreate("slider",220,300)
GUISetBkColor (0x00E0FFFF)  ; will change background color

$slider1 = GUICtrlCreateSlider (10,10,20,100, $TBS_VERT)
GUICtrlSetLimit(-1,0,-200)  ; change min/max value
$button = GUICtrlCreateButton ("Value?",75,70,70,20)
GUISetState()
GUICtrlSetData($slider1,45) ; set cursor

$start=TimerInit()
Do
  $n = GUIGetMsg ()
     
   If $n = $button Then
      MsgBox(0,"slider1",GUICtrlRead($slider1) * -1,2)
   $start=TimerInit()
   EndIf
Until $n = $GUI_EVENT_CLOSE

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Link to comment
Share on other sites

Noticed something with the slider...When in vert mode, I only get 2 ticks, one at the beginning and one one the end.

Is there a way to get all my ticks back like when in horizontal mode>?

$oVolSlide = GUICtrlCreateSlider(72, 50, 41, 350, $TBS_LEFT + $TBS_VERT)

EDIT NVRMND: $TBS_AUTOTICKS (isn't a default)...working now

Edited by sshrum

Sean Shrum :: http://www.shrum.net

All my published AU3-based apps and utilities

'Make it idiot-proof, and someone will make a better idiot'

 

Link to comment
Share on other sites

Negative values...kewl.

Another ?...I can't seem to get the sliders to match my GUI BGCOLOR = 0x000000.

What do I need to do to get them to change? I even tried:

GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT)

TIA

EDIT NVRMND, I needed to use: GUICtrlSetBkColor(-1, 0x000000)

Edited by sshrum

Sean Shrum :: http://www.shrum.net

All my published AU3-based apps and utilities

'Make it idiot-proof, and someone will make a better idiot'

 

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...