Paulie Posted June 18, 2006 Posted June 18, 2006 (edited) I have a list of statements about 1-2 sentances long each, and I want them in a gui listview so i can access them easier, i have a file containing all the statements, but how can i make a combo/input box in a listview control so the user can edit what they want to include in the final file. heres my code, but in the "include" section i want a combobox thats defaultly set on no, but has yes as an option #include <GUIConstants.au3> Global $Line_[201], $i, $Item_[201], $File = FileOpen("Patient Statements.txt",1) If $File= -1 Then Msgbox(0,"Error", "An error occurred with file.") Exit EndIf $FileClose1 = FileClose($File) FileOpen("Patient Statements.txt",0) $GuiWin = GUICreate("Statement Printer", 800, 800, -1, -1, $WS_SIZEBOX, $WS_EX_TOPMOST) GUISetBkColor(0xCCCCCC) $ListView = GUICtrlCreateListView("Number | Statements | Include", 10, 110, 690, 590) GuiSetState() For $i = 1 to 200 $Line_[$i] = FileReadLine("Patient Statements.txt", $i) $Item_[$i] = GUICtrlCreateListViewItem($i &"|"& $Line_[$i] &"| No", $ListView);<<<<<<<<<<<<<<<<<<<<<<embed Here Next While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then Exitloop WEnd Edited June 18, 2006 by Paulie
randallc Posted June 18, 2006 Posted June 18, 2006 Hi, Only the first items can be edited; so put your line first Randall ExcelCOM... AccessCom.. Word2... FileListToArrayNew...SearchMiner... Regexps...SQL...Explorer...Array2D.. _GUIListView...array problem...APITailRW
Paulie Posted June 19, 2006 Author Posted June 19, 2006 Hi,Only the first items can be edited; so put your line firstRandallThanks a million, thats Exactly what i wanted, TY
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