Re: flicker problem

new topic     » goto parent     » topic index » view thread      » older message » newer message

Hi Jerry,
Faking it:
Set the listview so it is not visible whilst loading and when finished make
it visible again.
setVisible(1stCity, False)
eraseItems(lstCity)
<begin loop>
    addItem(lstCity,data)
<end loop>
setVisible(1stCity, True)

Regards

Tony Steward


Come Visit Me At www.locksdownunder.com

----- Original Message -----
From: <jstory at freenet.edmonton.ab.ca>
To: "EUforum" <EUforum at topica.com>
Sent: Saturday, June 30, 2001 2: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
>
>
>
>
>
>

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu