anyday Posted May 3, 2006 Share Posted May 3, 2006 is it possible to create a combo box whose values are dependent on a previous combo selection? if this has been done before could someone point me there i did a search but didnt see anything. Link to comment Share on other sites More sharing options...
Valuater Posted May 3, 2006 Share Posted May 3, 2006 maybe #include <GUIConstants.au3> GUICreate("My GUI") ; will create a dialog box that when displayed is centered $combo1 = GUICtrlCreateCombo ("", 10,10) GUICtrlSetData(-1,"item1|item2|item3", "item3") $combo2 = GUICtrlCreateCombo ("", 10,70) GUISetState () ; will display an empty dialog box with a combo control with focus on ; Run the GUI until the dialog is closed While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop If $msg = $combo1 Then $info = GUICtrlRead($combo1) If $info = "item1" Then GUICtrlSetData($combo2,"") GUICtrlSetData($combo2,"item1A|item1B|item1C", "item1A") ElseIf $info = "item2" Then GUICtrlSetData($combo2,"") GUICtrlSetData($combo2,"item2A|item2B|item2C", "item2A") ElseIf $info = "item3" Then GUICtrlSetData($combo2,"") GUICtrlSetData($combo2,"item3A|item3B|item3C", "item3A") Else GUICtrlSetData($combo2,"") EndIf EndIf Wend 8) Link to comment Share on other sites More sharing options...
anyday Posted May 3, 2006 Author Share Posted May 3, 2006 (edited) will try thanks alot Edited May 3, 2006 by anyday Link to comment Share on other sites More sharing options...
Valuater Posted May 3, 2006 Share Posted May 3, 2006 Welcome 8) Link to comment Share on other sites More sharing options...
anyday Posted May 3, 2006 Author Share Posted May 3, 2006 (edited) works perfect thanks:) Edited May 3, 2006 by anyday 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