Jump to content

Editable ListView


Recommended Posts

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 by Paulie
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...