Post by shingu » 17 Apr 2014, 08:10
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
非常感谢!
[quote="tmplinshi"][code=autohotkey file=Script.ahk]; 样式列表: 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]
[code=autohotkey file=Script.ahk]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[/code]
[img]http://i1064.photobucket.com/albums/u361/tmplinshi/txt_styles_zpsc2fec030.png[/img][/quote]
非常感谢!