Sign in to follow this  
Followers 0

Editable ListView

3 posts in this topic

#1 ·  Posted (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.")
$FileClose1 = FileClose($File)

FileOpen("Patient Statements.txt",0)
$GuiWin = GUICreate("Statement Printer", 800, 800, -1, -1, $WS_SIZEBOX, $WS_EX_TOPMOST)
    $ListView = GUICtrlCreateListView("Number | Statements | Include", 10, 110, 690, 590)
For $i = 1 to 200
    $Line_[$i] = FileReadLine("Patient Statements.txt", $i)
    $Item_[$i] = GUICtrlCreateListViewItem($i &"|"& $Line_[$i] &"| No", $ListView);<<<<<<<<<<<<<<<<<<<<<<embed Here

While 1
    $msg = GUIGetMsg()
    If $msg = $GUI_EVENT_CLOSE Then Exitloop
Edited by Paulie

Share this post

Link to post
Share on other sites


Only the first items can be edited; so put your line first


Thanks a million, thats Exactly what i wanted,


Share this post

Link to post
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
Sign in to follow this  
Followers 0