Jump to content

Zodiak

Members
  • Posts

    4
  • Joined

  • Last visited

Everything posted by Zodiak

  1. Hi, I created a GUICtrlCreateInput and a GUICtrlCreateButton like code below GUICtrlCreateGroup("Nome", 110, 110, 90, 90) $inputFactionNAME = GUICtrlCreateInput($FactionNAME_ini, 115, 130, 80, 20) $ButtonFactionCLEAN = GUICtrlCreateButton("Clean", 125, 163, 60) GUICtrlCreateGroup("", -99, -99, 1, 1) The problem now is how to clean the input box by pushing the button. For example: input box is empty I write "hallo world" and now I would like to restore back the input box as empty, by pushing the button.
  2. Hi, I'm trying to make a gui, but I have a problem about $GUI_ENABLE and $GUI_DISABLE of a GUICtrlCreateInput. I'd like to enable it if $radioBz1 is $GUI_CHECKED and to disable it if $radioBz2 or $radioBz3 are $GUI_CHECKED. As I have written in the code below, I see the GUICtrlCreateInput refresh and I don't like it.. This is my gui code #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> Local $msg, $tab Local $tabA Local $radioAx1, $radioAx2 Local $radioAy1, $radioAy2 Local $tabB Local $radioBx1, $radioBx2 Local $radioBy1, $radioBy2 Local $radioBz1, $radioBz2, $radioBz3 Local $inputNAME ;##########|=> .: GUI START :. <=|############################################## GUICreate("asd", 400, 300) $tab = GUICtrlCreateTab(10, 10, 200, 230) $tabA = GUICtrlCreateTabItem("A") GUICtrlCreateGroup("x", 15, 35, 90, 70) $radioAx1 = GUICtrlCreateRadio("1", 20, 55, 80, 20) $radioAx2 = GUICtrlCreateRadio("2", 20, 75, 80, 20) GUICtrlCreateGroup("", -99, -99, 1, 1) GUICtrlCreateGroup("y", 110, 35, 90, 70) $radioAy1 = GUICtrlCreateRadio("1", 115, 55, 80, 20) $radioAy2 = GUICtrlCreateRadio("2", 115, 75, 80, 20) GUICtrlCreateGroup("", -99, -99, 1, 1) $tabB = GUICtrlCreateTabItem("B") GUICtrlCreateGroup("x", 15, 35, 90, 70) $radioBx1 = GUICtrlCreateRadio("1", 20, 55, 80, 20) $radioBx2 = GUICtrlCreateRadio("2", 20, 75, 80, 20) GUICtrlCreateGroup("", -99, -99, 1, 1) GUICtrlCreateGroup("y", 110, 35, 90, 70) $radioBy1 = GUICtrlCreateRadio("1", 115, 55, 80, 20) $radioBy2 = GUICtrlCreateRadio("2", 115, 75, 80, 20) GUICtrlCreateGroup("", -99, -99, 1, 1) GUICtrlCreateGroup("z", 15, 110, 90, 90) $radioBz1 = GUICtrlCreateRadio("1", 20, 130, 80, 20) $radioBz2 = GUICtrlCreateRadio("2", 20, 150, 80, 20) $radioBz3 = GUICtrlCreateRadio("3", 20, 170, 80, 20) GUICtrlCreateGroup("", -99, -99, 1, 1) GUICtrlCreateGroup("N", 110, 110, 90, 50) $inputNAME = GUICtrlCreateInput("", 115, 130, 80, 20) GUICtrlCreateGroup("", -99, -99, 1, 1) GUICtrlCreateTabItem("") GUISetState(@SW_SHOW) GUICtrlCreatePic("800x600.jpg", 0, 0, 400, 300, $WS_CLIPSIBLINGS) GUISetState(-1,$GUI_ONTOP) ;##########|=> .: GUI END :. <=|################################################ ;##########|=> .: GUI FUNCTION :. <=|########################################### _GUI() Func _GUI() While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop If BitAnd(GUICtrlRead($radioBz1), $GUI_CHECKED) Then GUICtrlSetState($inputNAME, $GUI_ENABLE) If BitAnd(GUICtrlRead($radioBz2), $GUI_CHECKED) Then GUICtrlSetState($inputNAME, $GUI_DISABLE) If BitAnd(GUICtrlRead($radioBz3), $GUI_CHECKED) Then GUICtrlSetState($inputNAME, $GUI_DISABLE) WEnd EndFunc
×
×
  • Create New...