> 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 _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

