Sets the default text color of all the controls of the GUI window.
GUICtrlSetDefColor ( deftextcolor [, winhandle] )
deftextcolor | Default text color for all controls. |
winhandle | [optional] Windows handle as returned by GUICreate() (default is the previously used window). |
Success: | 1. |
Failure: | 0. |
GUICreate, GUICtrlSetColor, GUICtrlSetDefBkColor
#include <GUIConstantsEx.au3>
Example()
Func Example()
GUICreate("test GUISetTextColor", 100, 100) ; will create a dialog box that when displayed is centered
GUICtrlSetDefColor(0xFF0000) ; will change text color for all defined controls
GUICtrlCreateLabel("label", 10, 5)
GUICtrlCreateRadio("radio", 10, 25, 50)
GUICtrlSetColor(-1, 0x0000FF) ; will change text color for specified control
GUICtrlCreateButton("button", 10, 55)
GUISetState(@SW_SHOW) ; will display an empty dialog box
; Loop until the user exits.
While 1
Switch GUIGetMsg()
Case $GUI_EVENT_CLOSE
ExitLoop
EndSwitch
WEnd
EndFunc ;==>Example