Daid Posted February 7, 2014 Report Share Posted February 7, 2014 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 More sharing options...
Joel Bodenmann Posted February 8, 2014 Report Share Posted February 8, 2014 I understand the problem that you are describing. I'll try to come up with a solution asap.~ Tectu Link to comment Share on other sites More sharing options...
Joel Bodenmann Posted April 26, 2014 Report Share Posted April 26, 2014 This feature has finally been added: https://bitbucket.org/Tectu/ugfx/commit ... 5cc557c2f7As we couldn't come up with any usecase for other widgets than the list, it has been implemented directly into the list widget API.~ Tectu Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now