Hi Hans,

> Oh, sry, I forgot to mention, that I`m tlaking about FLTK 2, if you didn`t 
> get it, I don`t hope so ....

Yes, I know is about FLTK 2 :)

> Oh, pls do not replace this, it`s very useful for me, with the help of this 
> hack I can prevent double callbacks, because though I defined:
> this->p_MenuBar->when(fltk::WHEN_NEVER);
> (and I defined that too at all the Items in the MenuBar (WHEN_NEVER)) the 
> MenuBar produces automatic callbacks (not what I wanted). I can prevent this 
> just with the help of the hack ...

Patience :), fltk::WHEN_NEVER will be hopefully fully functional. Btw.
thanks for this tip.

> To my second problem, I changed the code into this:
> 
>   } else while (o<e) {
>     std::cout << "int(*p): " << int(*p) << std::endl;
>     if (wordwrap &&
>               (p >= text_+size_ ||
>               isspace(*p))) {
>       w_to_lastspace += (int)getwidth(lastspace_out, o-lastspace_out);
>       if (p > lastspace+1) {

Strangely, for me still no crashes. I set/removed locale to DE (isspace()
depends on locale), pasted your text all over the place (in input test),
but no crash.

Just to ask, are you having the latest svn code? w_to_lastspace variable does 
not exists in current one.
--
Sanel
_______________________________________________
fltk mailing list
[EMAIL PROTECTED]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to