Sign in to follow this  
Followers 0
Paulie

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.")
    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

Share this post


Link to post
Share on other sites



Hi,

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

Randall

Thanks a million, thats Exactly what i wanted,

TY :D

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