home *** CD-ROM | disk | FTP | other *** search
/ PC World 2006 February / PCWorld_2006-02_cd.bin / software / vyzkuste / triky / triky.exe / autoit-v3-setup.exe / Examples / GUICtrlDelete.au3 < prev    next >
Text File  |  2004-09-29  |  394b  |  17 lines

  1. #include <GUIConstants.au3>
  2.  
  3. GUICreate ( "My GUI delete control", 200,200,800,200)
  4. $date=GUICtrlCreateDate ("1953/04/25", 10,10,185,20 )
  5. $del=GUICtrlCreateButton("Delete control", 50,50,70,20 )
  6. GUISetState ()
  7.  
  8. ; Run the GUI until the dialog is closed
  9. Do
  10.     $msg = GUIGetMsg()
  11.     if $msg = $del then
  12.         GUICtrlDelete($date)
  13.         GUICtrlDelete($del)
  14.     endif
  15. Until $msg = $GUI_EVENT_CLOSE
  16.  
  17.