E1M1 8 Posted January 22, 2011 I have listview with Code|Name|Member of EU. How do I move that checkbox from code column to Member of EU column with out using $WS_EX_LAYOUTRTL? #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include <GuiListView.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("countries", 339, 328, 191, 237) $ListView1 = GUICtrlCreateListView("Code|Name|Member of EU", 0, 40, 338, 286) _GUICtrlListView_SetExtendedListViewStyle(GUICtrlGetHandle($ListView1), $LVS_EX_CHECKBOXES) $item1 = GUICtrlCreateListViewItem("|EE|Estonia", $ListView1) $item2 = GUICtrlCreateListViewItem("|LV|Latvia", $ListView1) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd edited Share this post Link to post Share on other sites
AdmiralAlkex 125 Posted January 22, 2011 Change the order of the columns? .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Share this post Link to post Share on other sites
E1M1 8 Posted January 22, 2011 (edited) nope. I want that checkbox to be in last column. Edit I think it's GirdView I need, but how to ise it with autoit? Edited January 22, 2011 by E1M1 edited Share this post Link to post Share on other sites
pyzonet 0 Posted January 22, 2011 #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include <GuiListView.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("countries", 339, 328, 191, 237) $listview = GUICtrlCreateListView("Code|Name",0,40,120,286) _GUICtrlListView_SetExtendedListViewStyle($ListView, BitOR($LVS_EX_GRIDLINES, $LVS_EX_FULLROWSELECT)) $item = GUICtrlCreateListViewItem("|EE", $ListView) $item = GUICtrlCreateListViewItem("|LV", $ListView) $ListView1 = GUICtrlCreateListView("Member of EU", 110, 40, 228, 286) _GUICtrlListView_SetExtendedListViewStyle($ListView1, BitOR($LVS_EX_GRIDLINES, $LVS_EX_FULLROWSELECT, $LVS_EX_CHECKBOXES)) $item1 = GUICtrlCreateListViewItem("Estonia", $ListView1) $item2 = GUICtrlCreateListViewItem("Latvia", $ListView1) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd Example Script(s): Export Listview to Excel & Print!....(¯`v´¯)..... ·.¸.·´...¸.·´.. (☻//▌♥♥/ \ ... Wake up the dawn and ask her why ...╔══╗ ♥ ♫ ♥║██║ ♫ ♥ ♫║(O)║♥A dreamer dreams she never dies♥╚══╝۩۞۩ஜ1984'09ஜ۩۞۩ Share this post Link to post Share on other sites
E1M1 8 Posted January 22, 2011 That's good trick actually. Does anyone know anything about datagridview? edited Share this post Link to post Share on other sites