DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.
[STR New] Link: http://www.fltk.org/str.php?L2801 Version: 3.0 When a widget (buttons with or without a image in this case) is deactivated and then activated again, the widget does not draw the contents as active . ( was in the last few weekly updates i tested for 3.0, fltk-3.0.x-r9232 ) it shows in the stock bitmap.exe , every time you click something that calls deactivate() on a fltk3::Button , its contents will progressively get lighter & never return, activate() only returns the box style . text and any bitmap will simply fade away . exe is result of default source code as compiled by MYSY make on W7 64 bit. ( FWIW, i had to #undef JPG lib to get FLTK to compile ) potential work around , edited the source . void button_cb(fltk3::Widget *,void *) { int i = 0; if (leftb->value()) i |= fltk3::ALIGN_LEFT; if (rightb->value()) i |= fltk3::ALIGN_RIGHT; if (topb->value()) i |= fltk3::ALIGN_TOP; if (bottomb->value()) i |= fltk3::ALIGN_BOTTOM; if (insideb->value()) i |= fltk3::ALIGN_INSIDE; if (overb->value()) i |= fltk3::ALIGN_TEXT_OVER_IMAGE; b->align(i); if (inactb->value()) { b->deactivate(); inactb->value(0); // without this every other button will trigger this effect // while inactb is 1 . } else { b->activate(); b->labelcolor(0); // this seems to fix it for black lable , and bitmap // not sure if it would work on colord bitmaps , not tested } w->redraw(); } Link: http://www.fltk.org/str.php?L2801 Version: 3.0 _______________________________________________ fltk-bugs mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk-bugs
