Re: How to change color of Gtk::RadioButton's label?

On Mon, 19 Dec 2005 18:20:27 +0300 (MSK), Volosatov Alexander <rope-walker yandex ru> wrote:

But I compile and run this code!!! It work, but it's not universal!
In my class users past they strings.
And active step, done step ... have different attributes.
So I must use Pango, but it give me CRItical Error.
I need Pango tutorial.
And if you wish, I can send code of class.


Maybe this will better suit your needs.

#include <gtkmm.h>

int main(int argc, char**argv)
  Gtk::Main kit(argc, argv);

  Gtk::Window win;
  Gtk::CheckButton check;
  Gtk::Label* l=Gtk::manage(new Gtk::Label);
  l->set_text("blue text");
  l->modify_fg(Gtk::STATE_NORMAL , Gdk::Color("blue"));

  return 0;

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]