请问如何修改Gui控件的背景颜色?

遇到了问题?请先进行搜索(中文和英文),然后在此提问

Moderators: tmplinshi, arcticir

tmplinshi
Posts: 1604
Joined: 01 Oct 2013, 14:57

Re: 请问如何修改Gui控件的背景颜色?

30 May 2015, 05:13

某些控件如 ListView 可以用 BackgroundRRGGBB 或者 Background颜色名称(例如 BackgroundRed)
Gui, Add, ListView, Background00FF00

大部分控件都没有直接的方法,可借助下面两个函数:
CtlColors -> http://ahkscript.org/boards/viewtopic.php?f=6&t=2197
ImageButton -> http://ahkscript.org/boards/viewtopic.php?f=6&t=1103
youwantme
Posts: 47
Joined: 11 May 2015, 21:27

Re: 请问如何修改Gui控件的背景颜色?

30 May 2015, 19:12

谢谢,看来很复杂
tmplinshi wrote:某些控件如 ListView 可以用 BackgroundRRGGBB 或者 Background颜色名称(例如 BackgroundRed)
Gui, Add, ListView, Background00FF00

大部分控件都没有直接的方法,可借助下面两个函数:
CtlColors -> http://ahkscript.org/boards/viewtopic.php?f=6&t=2197
ImageButton -> http://ahkscript.org/boards/viewtopic.php?f=6&t=1103

Return to “请求帮助”

Who is online

Users browsing this forum: No registered users and 41 guests