Re: Changing color of a Gtk::Entry



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]