Hello all,
Lately I've been prettifying a user interface by using images instead of
'plain' buttons- one 'up' image and one 'down' image.
When the button is 'up', it copies its image from another, hidden button
which has the 'up' image; Likewise, when the button is clicked, it copies
its image from another hidden button which uses the down image only.
The code would basically looks something like this:
if (o->value()==1) {
o->image(button_down->image());
} else {
o->image(button_up->image());
}
o->redraw();
Now this is nice and works and all, but I guess it can be simplified.
Rather than re-inventing the wheel, as I'm probably not the first one
to use several images per button, I was wondering if someone out there
already created a 2-image image button alternative for Fl_Button,
Fl_Repeat_Button and Fl_Toggle_Button?
Best,
Marc
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk