#include <GUIConstantsEx.au3>
#include <GuiButton.au3>
Local $hGUI = GUICreate("Зачем такое нужно 1?", 300, 200)
Local $idButton_Close = GUICtrlCreateButton("1", 60, 10, 50,50)
Local $idButton_Close2 = GUICtrlCreateButton("2", 160, 10, 50,50)
GUISetState(@SW_SHOW, $hGUI)
While 1
Switch GUIGetMsg()
Case $GUI_EVENT_CLOSE
ExitLoop
Case $idButton_Close
_GUICtrlButton_Show( $idButton_Close,0)
_GUICtrlButton_Show( $idButton_Close2,1)
Case $idButton_Close2
_GUICtrlButton_Show( $idButton_Close,1)
_GUICtrlButton_Show( $idButton_Close2,0)
EndSwitch
WEnd
|