Advertisement
Guest User

Untitled

a guest
Dec 26th, 2011
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. #include <ButtonConstants.au3>
  2. #include <GUIConstantsEx.au3>
  3. #include <WindowsConstants.au3>
  4.  
  5. $Form2 = GUICreate("Form1", 122, 179, 302, 218)
  6. $Checkbox = GUICtrlCreateCheckbox(" Checkbox", 24, 8, 81, 25)
  7. $Button1 = GUICtrlCreateButton("Delete Checkbox", 16, 48, 89, 33, $WS_GROUP)
  8. $Button2 = GUICtrlCreateButton("Delete Button1", 16, 88, 89, 33, $WS_GROUP)
  9. $Button3 = GUICtrlCreateButton("Hide Button 2", 16, 128, 89, 33, $WS_GROUP)
  10. GUISetState(@SW_SHOW)
  11.  
  12.  
  13. While 1
  14. $nMsg = GUIGetMsg()
  15. Switch $nMsg
  16. Case $GUI_EVENT_CLOSE
  17. Exit
  18. Case $Button1
  19. GUICtrlDelete($Checkbox)
  20. Case $Button2
  21. GUICtrlDelete($Button1)
  22. Case $Button3
  23. GUICtrlSetState($Button2 ,$GUI_DISABLE)
  24. EndSwitch
  25. WEnd
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement