Jump to content

Fangster

Members
  • Posts

    2
  • Joined

  • Last visited

Fangster's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Thanks for the input Andreik and Melba23. Melba23, you code works great. I just had to edit the list of variables to show $input3 because you had $input2 two times.
  2. I want to show or hide an input box dynamically based on what is selected from a combo box, not from a click of a button. Is this possible? For example, "Static" is the default and all 3 input boxes will show. If I select "PPPoE", then only input box 1 and 2 are displayed. If I select "DHCP", then no boxes should show. Then if I select "Static" again, all 3 input boxes are displayed again, ready for input. I want input boxes to show based on what is selected in the combo boxes, not by pressing any buttons. I will use a button later to process what is entered in the boxes. #include <GUIConstantsEx.au3> Opt('MustDeclareVars', 1) Example() Func Example() Local $msg, $input1, $input2, $input3 GUICreate("My GUI combo") ; will create a dialog box that when displayed is centered GUICtrlCreateCombo("DHCP", 10, 10); create first item GUICtrlSetData(-1, "PPPoE|Static", "Static"); add other item snd set a new default $input1 = GUICtrlCreateInput ("",10,35,200,20) $input2 = GUICtrlCreateInput ("",10,65,200,20) $input3 = GUICtrlCreateInput ("",10,95,200,20) GUISetState() ; Run the GUI until the dialog is closed While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop WEnd EndFunc ;==>Example
×
×
  • Create New...