FLTK logo

Re: [fltk.general] Clear Fl_Text_Buffer

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.general  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: Clear Fl_Text_Buffer supsm17 21:55 Mar 22  
  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!

On Thursday, March 21, 2024 at 12:13:12 PM UTC-7 er...@seriss.com wrote:

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("");

--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/c07a2d28-28cd-4268-8920-e34da51af406n%40googlegroups.com.
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.