AzKay Posted July 13, 2007 Share Posted July 13, 2007 Say, Ive got a ListView. #include <GUIConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("AForm1", 418, 210, 193, 115) $ListView1 = GUICtrlCreateListView("Test|Test|Test", 0, 0, 417, 209, BitOR($LVS_REPORT,$LVS_EDITLABELS,$LVS_SINGLESEL,$LVS_SHOWSELALWAYS)) GUICtrlSendMsg($listview1, $LVM_SETEXTENDEDLISTVIEWSTYLE, $LVS_EX_GRIDLINES, $LVS_EX_GRIDLINES) GUICtrlSendMsg($listview1, $LVM_SETEXTENDEDLISTVIEWSTYLE, $LVS_EX_FULLROWSELECT, $LVS_EX_FULLROWSELECT) $ListView1_0 = GUICtrlCreateListViewItem("Test1|Test2|Test3", $ListView1) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $ListView1_0 MsgBox(0, "", GUICtrlRead($ListView1_0)) EndSwitch WEnd Just say, I wanted to: When I click, for example, Test3. Then, I want it to be editable. So, In short. I click the text, And I can edit it. # MY LOVE FOR YOU... IS LIKE A TRUCK- # Link to comment Share on other sites More sharing options...
PsaltyDS Posted July 13, 2007 Share Posted July 13, 2007 How about: While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $ListView1_0 $InputData = InputBox("AForm1", "Enter new data") If Not @error Then GUICtrlSetData($ListView1_0, $InputData) EndSwitch WEnd Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
AzKay Posted July 13, 2007 Author Share Posted July 13, 2007 (edited) Not using an inputbox, I mean, When you double click the section, It turns into a section, where you can type. Edited July 13, 2007 by AzKay # MY LOVE FOR YOU... IS LIKE A TRUCK- # Link to comment Share on other sites More sharing options...
randallc Posted July 13, 2007 Share Posted July 13, 2007 Hi,Try the example script in;Fast Sort with Icons in ListViewDoubleclick any cell and be amazed!Best, randall ExcelCOM... AccessCom.. Word2... FileListToArrayNew...SearchMiner... Regexps...SQL...Explorer...Array2D.. _GUIListView...array problem...APITailRW Link to comment Share on other sites More sharing options...
AzKay Posted July 13, 2007 Author Share Posted July 13, 2007 Nothing happens if I double click the cells. oo, Am I missing something here? # MY LOVE FOR YOU... IS LIKE A TRUCK- # Link to comment Share on other sites More sharing options...
randallc Posted July 13, 2007 Share Posted July 13, 2007 (edited) Hi, sorry it's not working on most recent versions of AutoIt, I think; try the "exe" compiled on my machine, or try newer version? Best, Randall ** Woops, sorry; it must have been an old file. Try Edited July 13, 2007 by randallc ExcelCOM... AccessCom.. Word2... FileListToArrayNew...SearchMiner... Regexps...SQL...Explorer...Array2D.. _GUIListView...array problem...APITailRW Link to comment Share on other sites More sharing options...
AzKay Posted July 13, 2007 Author Share Posted July 13, 2007 I just tryed the EXE, Nothing happens when I double click a cell. oo # MY LOVE FOR YOU... IS LIKE A TRUCK- # Link to comment Share on other sites More sharing options...
randallc Posted July 13, 2007 Share Posted July 13, 2007 I just tryed the EXE, Nothing happens when I double click a cell. oo** Woops, sorry; it must have been an old file.Try ExcelCOM... AccessCom.. Word2... FileListToArrayNew...SearchMiner... Regexps...SQL...Explorer...Array2D.. _GUIListView...array problem...APITailRW Link to comment Share on other sites More sharing options...
AzKay Posted July 13, 2007 Author Share Posted July 13, 2007 Nice :3 Thanks. # MY LOVE FOR YOU... IS LIKE A TRUCK- # Link to comment Share on other sites More sharing options...
randallc Posted July 13, 2007 Share Posted July 13, 2007 Nice :3Thanks.Thanks; btw, I see this doesn't work in 3.2.5.0 beta!Best, randall ExcelCOM... AccessCom.. Word2... FileListToArrayNew...SearchMiner... Regexps...SQL...Explorer...Array2D.. _GUIListView...array problem...APITailRW Link to comment Share on other sites More sharing options...
randallc Posted July 14, 2007 Share Posted July 14, 2007 HiPS - seeing my script won't work in new AutoIt version, I have hunted down the original author and script; - eltorroEdit In Place Listview (multi-column), Combination of old script, new code allows one to edit listview data.Best, Randall ExcelCOM... AccessCom.. Word2... FileListToArrayNew...SearchMiner... Regexps...SQL...Explorer...Array2D.. _GUIListView...array problem...APITailRW 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