Re: How to change color of Gtk::RadioButton's label?
- From: Marco <mscholtn xs4all nl>
- To: rope-walker yandex ru
- Cc: gtkmm general discussion <gtkmm-list gnome org>
- Subject: Re: How to change color of Gtk::RadioButton's label?
- Date: Mon, 19 Dec 2005 19:23:46 +0100
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.
Alex.
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"));
check.add(*l);
win.add(check);
win.show_all_children();
kit.run(win);
return 0;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]