Hi Marco,
First up, for future reference, post questions about FLTK in fltk.general -
fltk.development is reserved for developer discussions!
> If I pass a char array to the add() function, shouldn't changing the char
> array reflect on the browser entries?
> My understanding of the way fltk uses char buffers is that fltk does not keep
> copies of the string buffers itself.
You *could* try modifying the char buffer you pass to add(), however I'd
probably advise against this. I know label() screws around if you modify the
char buffer, so I would assume .add() to do something similar.
> [snip] Is there a way to update only certain items on the list?
You can use a fltk::List for rapidly change items - you can modify only one
element and the Browser should do a lot of the work for you when it comes to
redrawing. I haven't tried this with many thousands of elements, but it should
still work.
There is a brief example in test/list.cxx.
Hope this helps!
Ben
_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev