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

Post a reply


In an effort to prevent automatic submissions, we require that you complete the following challenge.
Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :| :mrgreen: :geek: :ugeek: :arrow: :angel: :clap: :crazy: :eh: :lolno: :problem: :shh: :shifty: :sick: :silent: :think: :thumbup: :thumbdown: :salute: :wave: :wtf: :yawn: :facepalm: :bravo: :dance: :beard: :morebeard: :xmas: :HeHe: :trollface: :cookie: :rainbow: :monkeysee: :monkeysay: :happybday: :headwall: :offtopic: :superhappy: :terms: :beer:
View more smilies

BBCode is ON
[img] is OFF
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: 【已解决】如何在图形界面上添加分割线?

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

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
Image

非常感谢!

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

Post by tmplinshi » 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

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

Post by shingu » 16 Apr 2014, 20:12

看了一下GUI中好像没这样的控件。

Top