Sign in to follow this  
Followers 0
Tellblom

Does not update Listview. What am I doing Wrong

2 posts in this topic

As a newbie I try to update a listview as the program runs, but it does not update....

Here the code:

GUICreate("Status Window", 400, 400)

GUICtrlCreateLabel("Status",10,8)

$listview =GUICtrlCreateListView("",10,30,380,250)

GUISetState()

Sleep(3000)

GUICtrlCreateListViewItem ( "Reading inifile..... ", $listview)

$file = FileOpen("my.ini", 0)

; Check if file opened for reading OK

If $file = -1 Then

GUICtrlCreateListViewItem ( "Can't find ini file. A default has been", $listview)

GUICtrlCreateListViewItem ( "created. Please edit it and rerun application.", $listview)

Exit

EndIf

FileClose($file)

Sleep(10000)

When I run this it never updates the listview. What have I missed?

/Martin

Share this post


Link to post
Share on other sites



Problem solved

I used the MemoWrite function in the helpfile then i GOT IT TO WORK

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