# includes ### #include #include ## includes end ### ### main informations ### ; this include can help you to manage your list view item ; this include was maked by nacer baaziz ### ## include variables informations### ; in this include there is tew main variables ; $SList ; replace it by your listView variable ; $sText ; replace it by your listview item text ### ## functions ### ### # function name _listview_Checke # # discription check the list view item # # return # # 0, if cant checke the listView # # 1, list view item is checked # # example _listview_Checke($list1, "item 2") ### func _listview_Checke($sList, $sText) $iI = _GUICtrlListView_FindText($sList, $sText) _GUICtrlListView_SetItemChecked($sList, $iI) if @error then return 0 else return 1 endIf endFunc ### # func name _isListviewChecked # # func discription get if item checked in listView # # function variables # # $SList the list view variable # # $text the item text # # return # # 1 item checked # # 0 item not Checked # # example _isListviewChecked($list1, "item 2") # ### func _isListviewChecked($sList, $sText) $iI = _GUICtrlListView_FindText($sList, $sText) $sIf = _GUICtrlListView_getItemChecked($sList, $iI) if $sIf = "true" then return 1 else return 0 endIf endFunc ### # func name listView_Read # # discription get the text of the selected item in a listview # # return 0, if cant get text or no item selected # item selected text, if not error # # example msgBox(0, "list view read", _ListView_Read($list1))) # ### func _ListView_Read($sList) $sRead = GUICtrlRead(GUICtrlRead($sList)) if @error then return -1 else return $sRead endIf endFunc ### end functions ###