Jump to content

Recommended Posts

Posted

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

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
  • Recently Browsing   0 members

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