I've noticed that if I use GuiCtrlSetState($control, $GUI_DISABLE) it does in fact disable the inputs, but it does not "gray out" the input as it would if the background color were default.
Is there a way to either specify the color that $GUI_DISABLE uses to signify a disabled input, or some way I can manually change the color in a second GuiSetBkColor statement?
Func _CreateInput($sText = "", $iLeft = 0, $iTop = 0, $iWidth = 120, $iHeight = 20) Local $oControl = GUICtrlCreateInput($sText, $iLeft, $iTop, $iWidth, $iHeight, BitOR($SS_CENTERIMAGE, $ES_AUTOHSCROLL)) GUICtrlSetBkColor($oControl, 0xE5F5E5) Return $oControl EndFunc ;==>_CreateInput
Func _Control($sState, $c0 = 0, $c1 = 0, $c2 = 0, $c3 = 0, $c4 = 0, $c5 = 0, $c6 = 0, $c7 = 0, $c8 = 0, $c9 = 0) If $sState = "Enable" Then $sState = $GUI_ENABLE + $GUI_SHOW If $sState = "Disable" Then $sState = $GUI_DISABLE + $GUI_SHOW If $c0 <> 0 Then GUICtrlSetState($c0, $sState) If $c1 <> 0 Then GUICtrlSetState($c1, $sState) If $c2 <> 0 Then GUICtrlSetState($c2, $sState) If $c3 <> 0 Then GUICtrlSetState($c3, $sState) If $c4 <> 0 Then GUICtrlSetState($c4, $sState) If $c5 <> 0 Then GUICtrlSetState($c5, $sState) If $c6 <> 0 Then GUICtrlSetState($c6, $sState) If $c7 <> 0 Then GUICtrlSetState($c7, $sState) If $c8 <> 0 Then GUICtrlSetState($c8, $sState) If $c9 <> 0 Then GUICtrlSetState($c9, $sState) EndFunc ;==>_ControlEnable
Edited by kor, 01 August 2012 - 11:35 PM.




