Clear Fl_Text_Buffer

15 visualizações
Pular para a primeira mensagem não lida

supsm17

não lida,
21 de mar. de 2024, 14:30:3221 de mar.
para fltk.general
What is the preferred way to clear a Fl_Text_Buffer? I found remove() but was wondering if there was a more efficient way to remove all the contents. Thanks in advance.

Greg Ercolano

não lida,
21 de mar. de 2024, 15:13:1221 de mar.
para fltkg...@googlegroups.com

On 3/21/24 11:30, supsm17 wrote:

What is the preferred way to clear a Fl_Text_Buffer? I found remove() but was wondering if there was a more efficient way to remove all the contents. Thanks in advance.

    I think I've just used text("");

supsm17

não lida,
23 de mar. de 2024, 00:55:1423 de mar.
para fltk.general
I was under the impression that text() required a mutable string but it seems that it actually doesn't. In the docs it also says
> If null, an empty string is substituted.
Thanks for the tip!

Responder a todos
Responder ao autor
Encaminhar
0 nova mensagem