BigDaddyO 60 Posted January 21, 2005 The example is from the help file #include <GUIConstants.au3> GUICreate("listview items",220,250, 100,200,-1,$WS_EX_ACCEPTFILES) GUISetBkColor (0x00E0FFFF) ; will change background color $listview = GUICtrlCreateListView ("col1|col2|col3 ",10,10,200,150);,$LVS_SORTDESCENDING) GUICtrlSetState($listview, $GUI_Acceptfiles) $button = GUICtrlCreateButton ("Value?",75,170,70,20) $item1=GUICtrlCreateListViewItem("item2|col22|col23",$listview) $item2=GUICtrlCreateListViewItem("item1|col12|col13",$listview) $item3=GUICtrlCreateListViewItem("item3|col32|col33",$listview) $input1=GUICtrlCreateInput("",20,200, 150) GUICtrlSetState(-1,$GUI_ACCEPTFILES) ; to allow drag and dropping GUISetState() Do $msg = GUIGetMsg () Select Case $msg = $button MsgBox(0,"listview item",GUICtrlRead(GUICtrlRead($listview)),2) Case $msg = $listview MsgBox(0,"listview", "clicked="& GUICtrlGetState($listview),2) EndSelect Until $msg = $GUI_EVENT_CLOSE What I want to do is be able to sort the list view items by draging and dropping say item 3 above item 1 and have it stay that way. is this possible? hmm... I guess I have to have a signature... Share this post Link to post Share on other sites
jpm 91 Posted January 21, 2005 No sort is available for the listview control as mentioned in the doc Share this post Link to post Share on other sites