Re: changing button color
- From: "Joe Van Dyk" <joevandyk gmail com>
- To: gtkmm-list gnome org
- Subject: Re: changing button color
- Date: Tue, 9 Jan 2007 15:19:45 -0800
On 1/9/07, Joe Van Dyk <joevandyk gmail com> wrote:
Hi,
Can't seem to find the answer to this....
How do I change the color of a button? For example, depending on the
state of an application, I want a button to sometimes be red and to
sometimes be normal color.
Nevermind, found it.
const static Gdk::Color yellow("yellow");
button->modify_bg(Gtk::STATE_NORMAL, yellow);
Joe
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]