tamir Posted February 1, 2005 Share Posted February 1, 2005 1) i have this function: Func funct() If $RMaxConn = "UL" Then GUICtrlSetState($UnLimitConn, $GUI_CHECKED) GUICtrlSetState($MaxConn, $GUI_DISABLE) GUICtrlSetState($InputMaxConn, $GUI_DISABLE) EndIf EndFunc and i have gui window. the main part is: $InputMaxConn = GUICtrlCreateInput("", 140, 50, 36, 20) $MaxConn = GUICtrlCreateUpdown($InputMaxConn, $UDS_ARROWKEYS) $UnLimitConn = GUICtrlCreateCheckbox("Unlimited", 190, 50) funct() as u can see i added the func() after the 3 controls, and it suppose to check the box and disable the other 2 controls, but it's only check the box without disable the other controls. Link to comment Share on other sites More sharing options...
MHz Posted February 1, 2005 Share Posted February 1, 2005 Where is this $RMaxConn control located in the script ? Link to comment Share on other sites More sharing options...
tamir Posted February 1, 2005 Author Share Posted February 1, 2005 i read him from ini file in a function: Func readFile() Global $RMaxConn = IniRead("file.ini", "sec1", "maxconn", "") EndFunc and i use the function 1 line after i create the gui window, but the problem is that only the disable not working, the check does. Link to comment Share on other sites More sharing options...
MHz Posted February 1, 2005 Share Posted February 1, 2005 Disabling Updown control does not work. Disabling an input control, disables both input and updown controls. So GUICtrlSetState($MaxConn, $GUI_DISABLE) can be removed. Cannot see any other problems with supplied information. Link to comment Share on other sites More sharing options...
tamir Posted February 1, 2005 Author Share Posted February 1, 2005 (edited) i found the problem, it was because i used a function to show+enable\hide+disable some control groups. anyway thanks for the tip before. and maybe u know how to make the ENTER function (move line down) occur in edit control when ENTER is pressed? Edited February 1, 2005 by tamir Link to comment Share on other sites More sharing options...
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