Re: can't set background color for Gtk::Entry



Bob Caryl wrote:
Your code doesn't work because you are not modifying the object that
actually renders the editable cell within the entry.  You need to
retrieve the Pango layout for the entry and modify the background color
attribute of the layout.  The following URL is a good place to start
delving into this:

http://www.gtkmm.org/gtkmm2/docs/reference/html/classPango_1_1Layout.html

Hope this helps a little.

I did look at the Pango layout, but the word 'color' does not appear on that page anywhere. I also looked at the AttrList, Context, etc. structures referenced on this page, but they don't contain any color-related information either.

am I missing something?



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