Re: [gtkmm] changing text color of gtkmm label
- From: bart <bart hakvoort castel nl>
- To: Bill Dewey <wdewey1 comcast net>
- Cc: gtkmm list <gtkmm-list gnome org>
- Subject: Re: [gtkmm] changing text color of gtkmm label
- Date: Thu, 11 Dec 2003 14:28:41 +0100
It looks ok, but i'm not sure about the Gdk::get_red(). I usually use
something like:
Gdk::Color c( "red" );
myLabel::modify_text( myLabel::get_state(), c );
Bart
On Thu, 2003-12-11 at 12:15, Bill Dewey wrote:
> I just want to make sure I understand this right. One way to implement
> this is to:
>
> myLabel::modify_text( myLabel::get_state(), Gdk::get_red());
>
> This should make the text red for the current state of my label. Does
> that look right? (I am currently at home and don't have access to my
> work computer)
>
> Bill
>
> >try this:
> >
> >void Gtk::Widget::modify_text( Gtk::StateType state, const Gdk::Color&
> >color )
> >
> >On Mon, 2003-12-08 at 14:47, wdewey1 comcast net wrote:
> >
> >
> >>I am trying to change the color of a label. The gtkmm documentation directed me to the pango::attrlist, but I could not find any info on how to format the markup text. It just kept referencing the markup format which I could not find. Does anyone know of an example or where the documentation to the markup format is? Thanks in advance!
> >>
> >>
>
>
> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtkmm-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]