home *** CD-ROM | disk | FTP | other *** search
/ PCNET 2006 September - Disc 1 / PCNET_CD_2006_09.iso / shareware / autoit-v3-setup.exe / Examples / Helpfile / _GUICtrlListGetInfo.au3 < prev    next >
Encoding:
Text File  |  2006-06-17  |  595 b   |  22 lines

  1. #include <GUIConstants.au3>
  2. #include <GuiList.au3>
  3.  
  4. Opt ('MustDeclareVars', 1)
  5.  
  6. Dim $msg, $listbox, $label
  7.  
  8. GUICreate("ListBox Get Info", 400, 250, -1, -1)
  9.  
  10. $listbox = GUICtrlCreateList("", 125, 40, 100, 120, BitOR($LBS_SORT, $WS_BORDER, $WS_VSCROLL, $LBS_NOTIFY))
  11. GUICtrlSetData($listbox, "test1|more testing|even more testing|demo|test2|test3|test4|test5|test6|test7|test8|")
  12. $label = GUICtrlCreateLabel("Info: " & _GUICtrlListGetInfo ($listbox), 150, 210, 120)
  13.  
  14. GUISetState()
  15. While 1
  16.     $msg = GUIGetMsg()
  17.     Select
  18.         Case $msg = $GUI_EVENT_CLOSE
  19.             ExitLoop
  20.     EndSelect
  21. WEnd
  22.