Re: Change background colour of a Frame



On 2/24/06, Xiangfei Jia <xjianz gmail com> wrote:
> I'm a beginner of gtkmm programmer. I have been trying to change the
> background of a frame for quite a long time, but not successful.I used
> Gtk::Color and frame.modify_bg() function. Can I get some help for this???
>
>  fei
>
>  Part of the code:
>  Gtk::Color c;
>  c.set_red(0);
>  c.set_blue(6000);
>  c.set_green(0);
>
>  modify_bg(Gtk::STATE_NORMAL, c);
>
> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtkmm-list
>
>
>

There was a thread on this topic just recently, but about a VBox
instead of a Frame.  see
http://mail.gnome.org/archives/gtkmm-list/2006-February/msg00090.html

Like a VBox, a Frame does not have it's own Gdk Window (see
http://gtkmm.org/docs/gtkmm-2.4/docs/tutorial/html/ch12.html for a
list and brief explanation of this).

Jonner



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