Sign in to follow this  
Followers 0
tamir

2 problems

5 posts in this topic

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.

Share this post


Link to post
Share on other sites



Where is this $RMaxConn control located in the script ?

Share this post


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.

Share this post


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.

Share this post


Link to post
Share on other sites

#5 ·  Posted (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 by tamir

Share this post


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
Sign in to follow this  
Followers 0