On 10/25/05, Archie Maskill <[EMAIL PROTECTED]> wrote:
> On 10/25/05, László Monda <[EMAIL PROTECTED]> wrote:
> > Hi Gtk# Masters,
> >
> > I tried to set the background of a Label widget, using
> > Widget.ModifyBase(StateType, Gdk.Color) and Widget.ModifyBg(StateType,
> > Gdk.Color) with no success.
>
> You can't set the background color of a Label directly - something to
> do with it not being a window widget. It can, however, inherit the
> background color of its parent. So instead, you can put the label
> into an EventBox and change the background color of the EventBox using
> ModifyBg.
Thanks Archie!
That works like a charm.
--
Laci
Blog: http://monda.hu/~laci/blog
Home: http://mondalaci.objectis.net
_______________________________________________
Gtk-sharp-list maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list