【已解决】如何在图形界面上添加分割线?

遇到了问题?请先进行搜索(中文和英文),然后在此提问
shingu
Posts: 8
Joined: 15 Apr 2014, 20:21

【已解决】如何在图形界面上添加分割线?

16 Apr 2014, 20:12

看了一下GUI中好像没这样的控件。
Last edited by amnesiac on 22 Aug 2014, 21:01, edited 2 times in total.
Reason: 调整为【已解决】。
tmplinshi
Posts: 1278
Joined: 01 Oct 2013, 14:57

Re: 【求助】如何在图形界面上添加分割线?

16 Apr 2014, 22:02

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
Image
shingu
Posts: 8
Joined: 15 Apr 2014, 20:21

Re: 【求助】如何在图形界面上添加分割线?

17 Apr 2014, 08:10

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
Image

非常感谢!

Return to “请求帮助”

Who is online

Users browsing this forum: No registered users and 2 guests