【问题标题】:(Autohotkey) Problem concerning GUI vertical progress bar not moving vertically(up and down) but horizontally as it does at horizontal Progresbar(自动热键)关于 GUI 垂直进度条的问题不是垂直移动(上下)而是水平移动,就像它在水平 Progresbar 上一样
【发布时间】:2021-06-05 19:46:51
【问题描述】:

正如标题所说,我遇到了奇怪的事情。

我正在编写下面的代码以在屏幕上制作许多进度条。重要的是我希望它从上到下移动,反之亦然。但即使这些看起来像垂直条,它也不会垂直移动。它从左到右进行。我想让它从底部移动到顶部。

希望有人知道答案。谢谢

;Gui, Add, Button,x-20 y-20 gButton +default
Gui -Caption +LastFound +AlwaysOnTop +ToolWindow
Gui, Margin, 0, 0
Gui, Font,s17 바탕 cBlack


Loop,114
{
    AIndex:=A_Index-1
    X:=Mod(AIndex,30)*40+20
    Y:=(Floor(AIndex/30))*130+30
    Gui,Add,Progress,x%X% y%y% h100 w25 cBlue vMyProgress_%A_Index%,50
    GuiControl,,MyProgress horizontal
}
Mask := "42f442"

Gui,Color, %Mask%
WinSet, TransColor, %Mask%
Gui,-dpiscale 
Gui,Show, x0 y0
return

【问题讨论】:

    标签: user-interface autohotkey


    【解决方案1】:

    你需要指定它是一个vertical进度条,像这样

    Gui,Add,Progress,x%X% y%y% h100 w25   Vertical   cBlue vMyProgress_%A_Index%,50
    

    More about progress options

    【讨论】:

    • @ggo 很高兴我能帮上忙! :-)
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多