Re: flicker problem
- Posted by francis at gmx.co.uk
Jun 30, 2001
I cannot replicate the problem on my computer, but from memory try this:
Use this function to turn redrawing off before adding bulk items:
SendMessage(hwndList,WM_SETREDRAW,False,0)
Then call this function to turn it on again after all additions are made.
SendMessage(hwndList,WM_SETREDRAW,True,0)
You might have to redraw the window too, I haven't tried it
----- Original Message -----
From: <jstory at freenet.edmonton.ab.ca>
To: "EUforum" <EUforum at topica.com>
Sent: Saturday, June 30, 2001 4:49 PM
Subject: flicker problem
>
>
> I gotta question.
> How do you get rid of flicker on list boxes when they are changing
> several times per second?
>
> This, run several times per second, causes flicker:
>
> [example 1]
>
> eraseItems(lstCity)
> <begin loop>
> addItem(lstCity,data)
> <end loop>
>
> What I would like to do is something like:
>
> [example 2]
>
> eraseItems_without_redrawing(lstCity)
> <begin loop>
> addItem_without_redrawing(lstCity,data)
> <end loop>
> redraw(lstCity)
>
> This would produce no flicker except the items that are changed, if any.
>
> Is there any way in win32lib.ew to do this, or to fake it?
>
>
> Jerry Story
>
>
>
>
>
|
Not Categorized, Please Help
|
|