> > According to the manual entry for Fl_Button: > > > > char Fl_Button::value() const > > int Fl_Button::value(int) > > The first form returns the current value (0 or 1). The second form > > sets the current value. > > > > Yet in this code, it appears to return NULL. Am I doing something > > wrong? > > The code is correct, but looks like cout's operator<<(..., char) sees 0 as > empty and does not print it. Setting "cout << (int)but->value() << endl;" > will call it's int version which will do the job. > > -- > Sanel
The code (in Fl_Button.H) doesn't match the doc. Fl:Button::value() const returns a char, not an int. _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

