Author: nick, majkinetor Last Modified: nonexistent
Set text and background color for some Gui controls. Supported types: Edit, Text, ListBox, ComboBox, DropDownList, CheckBox, RadioButton, ListView, TreeView, RichEdit
CColor(Hwnd, Background="", Foreground="")
CColor_(Wp, Lp, Msg, Hwnd)
For more details of the functions's parameters and return value, please see it's source code.
This module is part of the Forms Framework package.
Original code by nick / denick, See:
* http://www.autohotkey.com/forum/topic39055.html
Later majkinetor reworked on this.
For update's details and remarks related to the functions, please see the AutoHotkey Forum: http://www.autohotkey.com/forum/viewtopic.php?t=53317
The functions is an open source item under the BSD license. For details, please see http://creativecommons.org/licenses/BSD/
; #Include CColor.ahk #NoEnv SendMode Input SetWorkingDir %A_ScriptDir% Gui, Add, Text, HwndH1 cred, hello Gui, Add, Text, HwndH2 cred x+8, (de)nick Gui, Add, Text, HwndH3 cred x+8, thx MsgBox Proceed further to see what happens if colored with CColor Gui, Show, h100 w200 Sleep, 1500 CColor(h2, "FFFFFF", "blue") Gui, 1:+LastFound WinSet, ReDraw ; Without this redraw, the change does not take effect! Return GuiClose: ExitApp