设置指定控件的文本颜色.
GUICtrlSetColor ( 控件ID, 文本颜色)
控件ID | 控件标识符(控件ID),可由 GUICtrlCreate... 函数的返回值获得. |
文本颜色 | RGB 模式颜色值. |
成功: | 返回值为1. |
失败: | 返回值为0. |
#include <GUIConstantsEx.au3>
Example()
Func Example()
Local $msg
GUICreate("My GUI color text") ; will create a dialog box that when displayed is centered
GUICtrlCreateLabel("my Red label", 10, 20)
GUICtrlSetColor(-1, 0xff0000) ; Red
GUISetState()
; Run the GUI until the dialog is closed
While 1
$msg = GUIGetMsg()
If $msg = $GUI_EVENT_CLOSE Then ExitLoop
WEnd
EndFunc ;==>Example