simonkrauter / NiGui

Cross-platform desktop GUI toolkit written in Nim
MIT License
724 stars 49 forks source link

[Question] How would i clear an layoutContainer #161

Open thatrandomperson5 opened 1 year ago

thatrandomperson5 commented 1 year ago

I want to clear and then set a large amount of items into the layoutContainer while only updating the screen once. I was using textArea before but found it ugly. Also, does layoutContainer scroll if it fills to much? Is there already a different "Fancy list" container?

simonkrauter commented 1 year ago

So far there is no function to clear all items of a container or to disable screen updates. I think on Windows it could be implemented by using SendMessage(Handle, WM_SETREDRAW, WPARAM(False), 0);. For Gtk I found no equivalent.

The widget containers automatically provide scrollbars when the minimum size of the child widgets do not fit inside.

Lists are so far missing in NiGui.