Jump to content
Sign in to follow this  
Qwerty212

Inverted Slider?

Recommended Posts

Qwerty212

Hello from Barcelona, i was looking to make something like:

Posted Image

an inverted slider next to a progressbar.

But, $TBS_REVERSED is not what I'm looking for, does anybody know if it can be done in autoit?

Thanks in advance.

Edited by adolfito121

Share this post


Link to post
Share on other sites
evilertoaster

GUICreate("",300,60)
GUICtrlCreateProgress(5,5,290,25)
GUICtrlSetData(-1,5)
GUICtrlCreateSlider(5,30,290,25,529)
GUICtrlSetData(-1,100)
GUISetState()
While (GUIGetMsg()<>-3)
WEnd

If you mean the upside down slider cursor you're mostly out of luck. WinForms doesn't have an easy way to change the geometrical orientation of controls. You can in WPF, but that's not AutoIt.

Share this post


Link to post
Share on other sites
martin

Hello from Barcelona, i was looking to make something like:

Posted Image

an inverted slider next to a progressbar.

But, $TBS_REVERSED is not what I'm looking for, does anybody know if it can be done in autoit?

Thanks in advance.

A bit hasty and brief but just to show a way.

$g=GUICreate("arrow1")
GUICtrlCreateLabel('',20,100,200,2)
GUICtrlSetBkColor(-1,0xffffff)
GUICtrlCreateLabel('',20,100,2,20)
GUICtrlSetBkColor(-1,0xffffff)
GUICtrlCreateLabel('',220,100,2,22)
GUICtrlSetBkColor(-1,0x777777)
GUICtrlCreateLabel('',20,120,202,2)
GUICtrlSetBkColor(-1,0x777777)
$p = GUICtrlCreatePic("abc1.bmp",180,99,11,21)
GUISetState()
for $n = 1 to 200
    ControlMove($g,"",$p,200 - $n,99)
    sleep(100)
Next

sleep(5000)

abc1.bmp

Edited by martin

Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

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  

×