[gtkmm] Label not changing color
- From: Bill Dewey <wdewey1 comcast net>
- To: gtkmm list <gtkmm-list gnome org>
- Subject: [gtkmm] Label not changing color
- Date: Thu, 18 Dec 2003 15:57:03 -0800
I am trying to change the color of a label and I got some help with this
from this list. The code I am using complies fine, but the text color
does not change. I have tried changing the color in all states, but
that didn't help either. I am using:
Gdk::Color c( "red" );
myLabel->modify_text( myLabel->get_state(), c );
I have tried running this from a menu item and in the constructor for my
window (which is where the label is created). I don't know if there is
some default style that is overriding it (I have not created any style
type of stuff yet). All the code becides this has been generated by
glade. Thanks for any help given!
Bill Dewey
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]