Sebastian Sylvan wrote:
> On Wed, 01 Dec 2004 08:45:14 +0100, Daan Leijen <da...@cs...> wrote:
>
>>Sebastian Sylvan wrote:
>>
>>>Is there any way to force the program to process pending events?
>>>
>>>The specific situation is this. I add a bunch of stuff to a listbox
>>>and after each addition I would like the listbox to update itself so
>>>that the change is visible immidiatly. As it is now the changes are
>>>only visible after I've added ALL the items to the listbox.
>>
>>I think you can say "repaint w" to your widget "w" that needs to be
>>updated.
>
> The problem is that it won't get repainted until after the loop has finished =(
Ok, after "repaint", you have to call "wxcAppSafeYield objectNull" or
"wxcAppYield" (the second allows user input) to process pending messages.
-- Daan.
>
> /S
>
|