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

> You should not use it, since is, probably, a good candidate for
> replacement.

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 ...

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) {

and the output I got, before the program crashed was:

int(*p): -28

the text I pasted was:

"text with german äöü inside"

I think the isspace-methode crashes because of the negativ parameter ...
The Input crashes too I I paste a # sign ...

Thank you a lot for the help!

_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to