[Gtk-sharp-list] How to change Background Color in a
Gtk.TextView ?
Alexandros Frantzis
alfius at freemail.gr
Thu Jul 28 04:35:26 EDT 2005
On Wed, 2005-07-27 at 16:55 -0300, Paulo Alves Magalhães Filho wrote:
> Hi All,
>
> How to change Background Color of the Gtk.TextView ?
You can use Gtk.Widget.ModifyBase():
using Gtk;
...
TextView tv=new TextView();
tv.ModifyBase(StateType.Normal, new Gdk.Color(0x00,0x00,0xff));
HTH,
Alexandros
PS: http://live.gnome.org/GnomeArt_2fTutorials_2fGtkThemes (Section
Style Color Properties) is a useful read.
More information about the Gtk-sharp-list
mailing list