Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <ButtonConstants.au3>
- #include <GUIConstantsEx.au3>
- #include <WindowsConstants.au3>
- $Form2 = GUICreate("Form1", 122, 179, 302, 218)
- $Checkbox = GUICtrlCreateCheckbox(" Checkbox", 24, 8, 81, 25)
- $Button1 = GUICtrlCreateButton("Delete Checkbox", 16, 48, 89, 33, $WS_GROUP)
- $Button2 = GUICtrlCreateButton("Delete Button1", 16, 88, 89, 33, $WS_GROUP)
- $Button3 = GUICtrlCreateButton("Hide Button 2", 16, 128, 89, 33, $WS_GROUP)
- GUISetState(@SW_SHOW)
- While 1
- $nMsg = GUIGetMsg()
- Switch $nMsg
- Case $GUI_EVENT_CLOSE
- Exit
- Case $Button1
- GUICtrlDelete($Checkbox)
- Case $Button2
- GUICtrlDelete($Button1)
- Case $Button3
- GUICtrlSetState($Button2 ,$GUI_DISABLE)
- EndSwitch
- WEnd
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement