Re: Text Label on top of button Image



Bill Sousan wrote:

Is there a way to have a text label on top of a button image? What I am looking to do is to customize the button widget with images for the pressed and released button states. However, I still want to have a label on top of the image so that I can change the text and font size without having to change the image. In other words, I am trying to avoid having to have the text embedded in the image.

I tried using both the button’s label and image. However, it always appeared to want to push the image to one side of the button, and push the label to the other side of the button. I was not able to find a way to overlay the label on top of the button image.

Thanks,

Bill Sousan

------------------------------------------------------------------------

_______________________________________________
gtkmm-list mailing list
gtkmm-list gnome org
http://mail.gnome.org/mailman/listinfo/gtkmm-list
It seems that if you can get a GC to display the pixbuf on your custom button widget, you could simply render the desired caption text on top of your image using the same GC. Our point-of-sale application (Windows based) is entirely owner drawn, and that is how I handled adding the caption to my owner drawn buttons that also featured the two image scheme you mention.

Bob Caryl



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]