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

  1. #include <GuiConstants.au3>
  2. #include <GuiListView.au3>
  3.  
  4. Opt ('MustDeclareVars', 1)
  5. Dim $listview, $Btn_Exit, $msg, $Status
  6. GUICreate("ListView Edit Lable", 392, 322)
  7.  
  8. $listview = GUICtrlCreateListView("col1|col2|col3", 40, 30, 310, 149)
  9. GUICtrlCreateListViewItem("line1|data1|more1", $listview)
  10. GUICtrlCreateListViewItem("line2|data2|more2", $listview)
  11. GUICtrlCreateListViewItem("line3|data3|more3", $listview)
  12. GUICtrlCreateListViewItem("line4|data4|more4", $listview)
  13. GUICtrlCreateListViewItem("line5|data5|more5", $listview)
  14. $Btn_Exit = GUICtrlCreateButton("Exit", 300, 260, 70, 30)
  15. $Status = GUICtrlCreateLabel("HeaderID: " & _GUICtrlListViewGetHeader($listview), 0, 302, 392, 20, BitOR($SS_SUNKEN, $SS_CENTER))
  16.  
  17. GUISetState()
  18. While 1
  19.     $msg = GUIGetMsg()
  20.     Select
  21.         Case $msg = $GUI_EVENT_CLOSE Or $msg = $Btn_Exit
  22.             ExitLoop
  23.     EndSelect
  24. WEnd
  25. Exit
  26.