#include "GUIListViewEx.au3" #include #include #include Func MainGui() $hGUI = GUICreate("Select Issue", 700, 500, -1, -1,$WS_THICKFRAME) $cLV_1 = GUICtrlCreateListView("Zero Column|One Column|Two Column|Three Column", 10, 80, 1180, 260,$LVS_EX_DOUBLEBUFFER) _GUICtrlListView_SetColumnWidth($cLV_1, 0, 70) _GUICtrlListView_SetColumnWidth($cLV_1, 1, 150) _GUICtrlListView_SetColumnWidth($cLV_1, 2, 150) _GUICtrlListView_SetColumnWidth($cLV_1, 3, 220) Global $aLVArray_1[6][4] For $i = 0 To 5 $sData = "Item " & $i & "-0" $aLVArray_1[$i][0] = $sData For $j = 1 To 3 $sData &= "|SubItem " & $i & "-" & $j $aLVArray_1[$i][$j] = "SubItem " & $i & "-" & $j Next GUICtrlCreateListViewItem($sData, $cLV_1) Next Global $iLVIndex_1 = _GUIListViewEx_Init($cLV_1, $sData, 0, 0, True, 1 + 4 + 32) ; + 16 _GUIListViewEx_SetEditStatus($iLVIndex_1, 0,1) ; Default = standard text edit _GUIListViewEx_SetEditStatus($iLVIndex_1, 1,3,"#","yyyy-MM-dd h:mm tt") ; 2 = Read-only combo _GUIListViewEx_SetEditStatus($iLVIndex_1, 2,3,"#","yyyy-MM-dd h:mm tt") _GUIListViewEx_SetEditStatus($iLVIndex_1, 3,1) $mContextmenu = GUICtrlCreateContextMenu($cLV_1) Global $mUnSel = GUICtrlCreateMenuItem("Unselect Line", $mContextmenu) EndFunc MainGui() _GUIListViewEx_MsgRegister() GUISetState() While 1 $iMsg = GUIGetMsg() Switch $iMsg Case $GUI_EVENT_CLOSE Exit Case $mUnSel _GUIListViewEx_SetActive($iLVIndex_1) _GUIListViewEx_SelectItem(-1) EndSwitch WEnd