Sign in to follow this  
Followers 0
sshrum

Vertical sliders...

6 posts in this topic

#1 ·  Posted (edited)

Does such an object exist?

Instead of a bar with a left-right orientation...I'm looking for a bar with a up-down orientation.

Any ideas?

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'

 

Share this post


Link to post
Share on other sites



#3 ·  Posted (edited)

look at the styles for slider control $TBS_VERT

Any way to reverse its progress...looks like 0 is at the top...Id like it at the bottom

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'

 

Share this post


Link to post
Share on other sites

#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.

 

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

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'

 

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

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'

 

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  
Followers 0