> Is there any way to have a Fl_Button with a image in it and a text on
> this image? The text should be changeable, so I can't put the text onto
> the picture directly... :-(

If you are like me and are using Fluid to design your GUI's, there's an easy 
workaround to your problem that doesn't require any programming. BUT you must 
use 2 buttons instead of one.  Just put a second button exactly on top of the 
button with the image on it. The second button must be of type 'Frame' as 
opposed to box. That way it won't be filled in with some color. Only the label 
will show. To make things visually clean, use the same border types on the 
image button and on the overlayed frame. In your callback to the frame widget 
simply change the label each time the widget is activated. I just tested this 
and it worked fine.

You can also toggle the underlying image (again with no programming) by using a 
third button with another image on it. In the Frame widget callback, 
alternately hide one of the image buttons while displaying the other one.  Have 
fun.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to