Re: [fltk.general] 'Smart' label text truncating

2010-07-19 Thread dimatura
> Greg Ercolano wrote: > > dimatura wrote: > >> So I'm wondering if there's a way to find out at runtime the width of a > >> label > > > > There's a few: > > > > fl_measure(): > > > > http

Re: [fltk.general] 'Smart' label text truncating

2010-07-19 Thread dimatura
> dimatura wrote: > > So I'm wondering if there's a way to find out at runtime the width of a > > label > > There's a few: > > fl_measure(): > > http://fltk.org/doc-1.3/group__fl__drawings.html#gccd92d0c0521b0aac30dcb856d43

[fltk.general] 'Smart' label text truncating

2010-07-19 Thread dimatura
Hi all, I used FLTK 1.1.x to make a simple taskbar for the Ratpoison window manager. It's hosted at http://github.com/dimatura/rpbar . It works fine, but it's still pretty beta. One of the hacks in the code relates to the clipping behavior for the labels. I'll explain. Here

Re: [fltk.general] Callbacks are not executed concurrently, right?

2010-07-18 Thread dimatura
> If you need to do some really *looong* processing, don't do it from a > callback, find some other way to manage it (I usually spin of a worker > thread) to ensure that the GUI stays alive. > Thanks for the answer. By the way, what do you use for threads? It seems FLTK doesn't have most of the

Re: [fltk.general] Callbacks are not executed concurrently, right?

2010-07-17 Thread dimatura
> > On 17.07.2010, at 23:10, dimatura wrote: > > > I have a FLTK 1.1.x program with has two functions that manipulate a = > common data structure (std::vector) as well as an FLTK pack. One of the = > functions is invoked by an Fl::add_fd callback and the other is invoked = &

[fltk.general] Callbacks are not executed concurrently, right?

2010-07-17 Thread dimatura
I have a FLTK 1.1.x program with has two functions that manipulate a common data structure (std::vector) as well as an FLTK pack. One of the functions is invoked by an Fl::add_fd callback and the other is invoked by a Fl::add_timeout/repeat_timeout callback. Things are working fine, but I'd like