Hi guys, i have problem with this : #include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
GUI()
Func GUI()
Global $MyForm = GUICreate("My GUI edit",500,300,100,100)
GUISetState(@SW_SHOW)
GUISetFont(12, 400, 0, "Tahoma")
$Label1 = GUICtrlCreateLabel("Label 01 ",0, 0, 50 , 25 )
$Label1 = GUICtrlCreateLabel("Label 01 ",0, 50, 50 , 25 )
Global $BTN1 = GUICtrlCreateButton("BTN 1 ", 150, 0, 50, 25)
Global $BTN2 = GUICtrlCreateButton("BTN 2", 150, 50, 50, 25)
EndFunc
;Function
Func Test1()
If $BTN1 = True Then
Local $Edit1 = GUICtrlCreateEdit("Edit 1", 0, 80, 200, 200)
EndIf
EndFunc
Func Test2()
If $BTN2 = True Then
Local $Edit2 = GUICtrlCreateEdit("Edit 2", 200, 80, 200, 200)
EndIf
EndFunc
While 1
Switch GUIGetMsg()
Case $BTN1
If $BTN1 = True Then
Test1 ()
EndIf
Case $BTN2
If $BTN2 = True Then
Test2 ()
EndIf
Case $GUI_EVENT_CLOSE
ExitLoop
EndSwitch
WEnd
* i want to : after click on "$BTN 1" , "$Edit2" was hidden or after click on "$BTN 2" , "$Edit1" was hidden.