[Gtk-sharp-list] How do I control the text appearance of a Gtk.Entry widget ?

Michael Hutchinson m.j.hutchinson at gmail.com
Sat Mar 8 18:22:54 EST 2008


On Tue, Mar 4, 2008 at 9:09 AM, Jesper K. Pedersen <linux at famped.dk> wrote:
> I(newbie in Gtk#) am writing a small application where I need to
> "highlight" entry of data in a Gtk.Entry widget.
>
> Any ideas of how to best achieve that?
>
> My first guess is that there is some means of controlling the style of the
> entry but I am having trouble finding any examples of this)
>
> Any ideas are greatly appreciated

http://go-mono.com/docs/monodoc.ashx?link=M%3aGtk.Widget.ModifyBg(Gtk.StateType%2cGdk.Color)
(though it might be ModifyBase, can't remember which style/state is
used for the background of the Entry)

http://ometer.com/gtk-colors.html

Note also that setting styles will only affect the things that that
widget actually draws, e.g. containers don't draw backgrounds.

-- 
Michael Hutchinson
http://mjhutchinson.com


More information about the Gtk-sharp-list mailing list