olympus Posted April 26, 2010 Posted April 26, 2010 When I use GuiCtrlCreateInput with $ES_READONLY, it turns the input box grey. Is there a way to stop it from changing colour?
blckpythn Posted April 26, 2010 Posted April 26, 2010 I haven't tested this but try using adding a variable to the beginning of it. $var = GuiCtrlCreateInput etc then below it add $var = $GUI_ENABLE again. i have not tested this
Fire Posted April 26, 2010 Posted April 26, 2010 Try this way GUICtrlSetBkColor($Input1,0xFFFFFF) More explanation : #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form=Form1.kxf $Form1 = GUICreate("Form1", 633, 447, 192, 124) $Input1 = GUICtrlCreateInput("Input1", 192, 104, 225, 21, BitOR($ES_AUTOHSCROLL,$ES_READONLY)) GUICtrlSetBkColor($Input1,0xFFFFFF) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd [size="5"] [/size]
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now