home *** CD-ROM | disk | FTP | other *** search
/ PCNET 2006 September - Disc 1 / PCNET_CD_2006_09.iso / shareware / autoit-v3-setup.exe / Examples / Helpfile / _GUICtrlListViewGetCounterPage.au3 < prev    next >
Encoding:
Text File  |  2006-06-20  |  1.1 KB  |  27 lines

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