hi
i have a Fl_Output widget, and i want to test its value :
Fl_Ouput *o = new Fl_Output blabla
o->value("white");
..
if(o->value == "white"){ blabla}
my if condition is never verified. why's that ?
and while trying to get around this problem i tried:
const char *p = o->value();
if(p="white"){
o->value("black");
} //notice the only equal sign !
and, very strangely, the if condition is always satisfied! even when the value
of the widget has changed ! (and it has changed, i made it appear in a
window...)
what can i do to test this o->value correctly ??
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk