【已解决】如何在图形界面上添加分割线?
Posted: 16 Apr 2014, 20:12
看了一下GUI中好像没这样的控件。
Let's help each other out
https://www.autohotkey.com/boards/
Code: Select all
; 样式列表: http://ahkscript.org/docs/misc/Styles.htm#Text
Gui, Add, Text, 0x10 w200 h1, ; 0x10 = 横分割线
Gui, Add, Text, 0x11 w1 h100 y+0, ; 0x11 = 竖分割线
Gui, Show
Return
GuiClose:
ExitApp
Code: Select all
txt_styles := "0x7 0x4 0x1 0x12 0x10 0x11 0x8 0x5 0xC 0x80 0x100 0x2 0x1000 0x9 0x6 0x800201"
Loop, Parse, txt_styles, %A_Space%
{
Gui, Add, Text, xm Section w200 h30 %A_LoopField%
Gui, Add, Text, xp wp hp 0x201 BackgroundTrans cBlue, %A_LoopField%
}
Gui, Show
Return
GuiClose:
ExitApp
tmplinshi wrote:Code: Select all
; 样式列表: http://ahkscript.org/docs/misc/Styles.htm#Text Gui, Add, Text, 0x10 w200 h1, ; 0x10 = 横分割线 Gui, Add, Text, 0x11 w1 h100 y+0, ; 0x11 = 竖分割线 Gui, Show Return GuiClose: ExitApp
Code: Select all
txt_styles := "0x7 0x4 0x1 0x12 0x10 0x11 0x8 0x5 0xC 0x80 0x100 0x2 0x1000 0x9 0x6 0x800201" Loop, Parse, txt_styles, %A_Space% { Gui, Add, Text, xm Section w200 h30 %A_LoopField% Gui, Add, Text, xp wp hp 0x201 BackgroundTrans cBlue, %A_LoopField% } Gui, Show Return GuiClose: ExitApp