設(shè)置 GUI 窗口所有控件文本默認(rèn)顏色.
GUICtrlSetDefColor ( 顏色 [, 句柄] )
顏色 | 控件文本的默認(rèn)顏色. |
句柄 | [可選參數(shù)] 由 GUICreate() 函數(shù)返回的窗口句柄 (默認(rèn)為先前使用的窗口). |
成功: | 返回 1. |
失敗: | 返回 0. |
#include <GUIConstantsEx.au3>
Example()
Func Example()
Local
$msg
GUICreate("設(shè)置
GUI 控件文本顏色") ;
創(chuàng)建居中顯示的 GUI 窗口
GUICtrlSetDefColor(0xFF0000) ;
所有定義的控件將改變文字顏色
GUICtrlCreateLabel("標(biāo)記", 10, 5)
GUICtrlCreateRadio("單選框", 10, 25, 50)
GUICtrlSetColor(-1, 0x0000FF) ;
為指定的控件改變文字顏色
GUICtrlCreateButton("按鈕",
10, 55)
GUISetState() ; 顯示一個(gè)空白的窗口
; 運(yùn)行 GUI, 直到
GUI 被關(guān)閉
While
1
$msg = GUIGetMsg()
If $msg = $GUI_EVENT_CLOSE Then ExitLoop
WEnd
EndFunc ;==>Example
provider with jb51.net (unicode) |