【已解决】如何在图形界面上添加分割线?
Moderators: tmplinshi, arcticir
【已解决】如何在图形界面上添加分割线?
看了一下GUI中好像没这样的控件。
Last edited by amnesiac on 22 Aug 2014, 21:01, edited 2 times in total.
Reason: 调整为【已解决】。
Reason: 调整为【已解决】。
Re: 【求助】如何在图形界面上添加分割线?
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
Re: 【求助】如何在图形界面上添加分割线?
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
非常感谢!
Who is online
Users browsing this forum: No registered users and 13 guests