Jump to content

Suggestion: Option to disable rendering


Daid

Recommended Posts

I would like to suggest an option to disable rendering of an widget, until enabled again.

Currently I'm putting elements in a listbox, but during this inserting the listbox gets drawn repeatedly, causing flicker. I worked around this by:

gwinSetVisible(ghFileList, FALSE);
for each file:
gwinListAddItem(ghFileList, fn, TRUE);
gwinSetVisible(ghFileList, TRUE);

However, gwinSetVisible FALSE causes the listbox area to be cleared on the screen. So it's empty for a while.

If I hack this up to:


ghFileList->flags &= ~2;//Disable the visibility flag.
for each file:
gwinListAddItem(ghFileList, fn, TRUE);
gwinSetVisible(ghFileList, TRUE);

I get the result I'm looking for, in a very dirty way.

Thoughts?

Link to comment
Share on other sites

  • 2 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...