Jump to content

Recommended Posts

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 post
Share on other sites

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 post
Share on other sites

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 post
Share on other sites

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 by tamir
Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...