Is it possible to make this kind of Gui

Get help with using AutoHotkey and its commands and hotkeys
vsub
Posts: 175
Joined: 29 Sep 2015, 03:39

Is it possible to make this kind of Gui

19 May 2019, 05:26

The white part to move and the slider background to be gray
Using vertical Slider doesn't look right
Attachments
2019-05-19_112317.jpg
2019-05-19_112317.jpg (2.42 KiB) Viewed 248 times
wolf_II
Posts: 2683
Joined: 08 Feb 2015, 20:55

Re: Is it possible to make this kind of Gui

19 May 2019, 06:13

A standard slider from AHK's collection of GUI-controls will look different to your picture.
Use GDip to make a slider that matches the picture.
swagfag
Posts: 2765
Joined: 11 Jan 2017, 17:59

Re: Is it possible to make this kind of Gui

19 May 2019, 07:03

Code: Select all

Gui New, +LastFound +AlwaysOnTop -Caption
Gui Color, Black
Gui Add, Progress, x27 y20 w11 h79 c0x6B696A Background0x6B696A, 100
Gui Add, Progress, x27 y74 w11 h11 c0xFFFFFF Background0xFFFFFF, 100
Gui Font, s10 q5, Segoe UI
Gui Add, Text, x25 y107 c0xFFFFFF, 20
Gui Show, w65 h140
WinSet Trans, 225
vsub
Posts: 175
Joined: 29 Sep 2015, 03:39

Re: Is it possible to make this kind of Gui

19 May 2019, 07:39

Thanks but I have some problems.
1.Is there is a way to center the text so when it is 1 or 3 digits to not look bad
2.Why this is not doing anything

NumpadAdd::
Var += 5
GuiControl,Move,vol,% "x27" "y" Var
Return

Vol is the variable given to the white progressbar
To make it look good,I can move it between y20 for 0 and y88 for 100,so I have to move the control by 6.8
Sam_
Posts: 106
Joined: 20 Mar 2014, 20:24

Re: Is it possible to make this kind of Gui

21 May 2019, 17:04

Wouldn't it just be easier to Center align the text control?

Code: Select all

Gui Add, Text, x25 y107 Center c0xFFFFFF, 20
To specify more than one option, include a space between each (note the space after 27 and before y):

Code: Select all

GuiControl,Move,vol,% "x27 " "y" Var

Return to “Ask For Help”

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], ilhom, Terminus_Est and 195 guests