Can a ListView be actualized while being filled ?

Just starting out? Need help? Post your questions and find answers here.
User avatar
Caronte3D
Addict
Addict
Posts: 1027
Joined: Fri Jan 22, 2016 5:33 pm
Location: Some Universe

Re: Can a ListView be actualized while being filled ?

Post by Caronte3D »

But use it with caution, because you can miss other events if you do WindowEvent() and don't process it.
BarryG
Addict
Addict
Posts: 3292
Joined: Thu Apr 18, 2019 8:17 am

Re: Can a ListView be actualized while being filled ?

Post by BarryG »

Blue wrote: Fri May 26, 2023 1:29 pmThank you BarryG. Your suggestion is bang on !
Glad you're happy, but in fairness: Caronte3D mentioned it first, before my post. I just put it in an example.
Fred
Administrator
Administrator
Posts: 16617
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Can a ListView be actualized while being filled ?

Post by Fred »

And that's exactly what I suggested ;). But you should do While WindowEvent() : Wend
BarryG
Addict
Addict
Posts: 3292
Joined: Thu Apr 18, 2019 8:17 am

Re: Can a ListView be actualized while being filled ?

Post by BarryG »

Sorry Fred! I did a page search for "WindowEvent" and Caronte3D's post was the first match with it.
User avatar
Blue
Addict
Addict
Posts: 864
Joined: Fri Oct 06, 2006 4:41 am
Location: Canada

Re: Can a ListView be actualized while being filled ?

Post by Blue »

Fred wrote: Sat May 27, 2023 1:43 pm And that's exactly what I suggested ;). But you should do While WindowEvent() : Wend
Right !
I just re-read your first answer (2023-05-24 13:48)
Fred wrote: You can run the event loop every X items, it should fo the trick
... and now i get it. When i first read it, it just flew right above my understanding of things. The meaning of "run the event loop" totally escaped me.

So, belatedly but sincerely, thank you. And sorry ! I ain't as quick as I used to be (if i remember correctly...)

NOTE to BarryG : I think Fred's comment was directed at me for not catching his sophisticated 2-cents early into the topic.
"That's not a bug..." said the programmer. "it's a feature! "
"Oh! I see..." replied the blind man.
Post Reply