Re: Changing color of a Gtk::Entry
- From: Paul Davis <paul linuxaudiosystems com>
- To: Johannes Bauer <dfnsonfsduifb gmx de>
- Cc: gtkmm-list gnome org
- Subject: Re: Changing color of a Gtk::Entry
- Date: Sun, 20 Jul 2008 15:48:20 -0400
On Sun, 2008-07-20 at 21:23 +0200, Johannes Bauer wrote:
> Hello list,
>
> I've searched about how to change the color of an Gtk::Entry, but
> haven't found anything - I want it to appear greyed out, so it is
> immediately visible that nothing can be entered (it's disabled)
entry->set_sensitive (false);
> or
> appear it with red background so the user knows he has entered invalid
> values. How can this be done?
look at Gtk::Widget::modify_text() and Gtk::modify_base()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]