Jump to content
Sign in to follow this  
Daid

Suggestion: Option to disable rendering

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?

Share this post


Link to post
Share on other sites
Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...