Lose focus (list from a queue)

I have a list from queue, I display results from other processes in this queue
How to refresh the list because I lose the FOCUS
The list is refreshed at the end of the process

Thanks

You probably want to do something with EVENT:GainFocus

This is my example

Myqueue Queue
   Q1    string(20)
   Q3   ulong 
end

Open(window)
display(?ListQueue)
x#=0
Set(File1)
next(file1)
Loop While errorcode()=0
       x#+=1
       Q1=x#
       Q2=Myfonc1()
       Add(MyQueue)
      display(?ListQueue)
       !When I leave the window (ex run excel or other) the list is not refresh
      
      next(file1)
End

!thanks

So is that all thats in the procedure?
Is this an ABC App procedure or hand coded?
If hand code, Do you have an ACCEPT loop anywhere?
You need to check for IF EVENT() = EVENT:Gainfocus; DIsplay.

You don’t have an ACCEPT loop to handle re-drawing the window.
And if you’re building a list from a file, you could (depending on how large the file is and how long it takes to process) do it before opening the window in the first place.

Thanks using ACCEPT
everything works

THANKS