CrimsonRiot Posted November 7, 2007 Share Posted November 7, 2007 How would i do this? How would i be able to return the items checked (My list size will vary)? Link to comment Share on other sites More sharing options...
Zedna Posted November 7, 2007 Share Posted November 7, 2007 (edited) create listview with style $LVS_REPORT and exstyle $LVS_EX_CHECKBOXES for example $ListView1 = GUICtrlCreateListView("Col1|Col2|Col3", 8, 212, 458, 364, BitOR($LVS_REPORT,$LVS_SINGLESEL,$LVS_SHOWSELALWAYS,$WS_HSCROLL,$WS_VSCROLL,$WS_BORDER), BitOR($WS_EX_CLIENTEDGE,$LVS_EX_CHECKBOXES,$LVS_EX_FULLROWSELECT)) for get checked state: #include <GuiListView.au3> ... $all = '' $pocet = _GUICtrlListViewGetItemCount($ListView1) For $i = 0 To $pocet - 1 If _GUICtrlListViewGetCheckedState($ListView1, $i) Then $tmp = _GUICtrlListViewGetItemText($ListView1, $i, 1) If $tmp <> '' Then $all &= $tmp & @LF EndIf Next ConsoleWrite($all) Edited November 7, 2007 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
CrimsonRiot Posted November 9, 2007 Author Share Posted November 9, 2007 Thanks you helped alot! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now