Hi guys,

I converted a c++ CLI program to a GUI program using FLTK. It's a very simple 
program that lists the contents of a folder. It's equivelent to a Unix ls 
command or a Windows dir command. It works OK, but when the folder contains a 
lot of files, the GUI hangs for several seconds and then finally displays the 
listing.

I'm using a Fl_Browser to output to. I do this output->add(item.c_str()) 
Perhaps this is incorrect? I've tried win->redraw() and a few other things, but 
it still hangs. Maybe I need to do threads? I'm not sure. This is my first GUI 
app. Everything displays correctly after the hang and all the buttons work, 
etc. So overall it's a success.

Any ideas on how to fix the hang?

Thanks a lot for your time!

Tom
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to