[Xfc-dev] A little help please
Ricardo M
tareasrick at yahoo.com.mx
Thu May 18 16:05:37 CEST 2006
Hi list
I need a little bit of help here, i want to change the
default font value of color and size in a label, but i
have tried with many ways and i couldn't, here's the
code
lblCan = new Gtk::Label;
Gtk::RcStyle *sty = lblCan->get_modifier_style();
Gdk::Color *blanco = new Gdk::Color
(65535,65535,65535);
Gdk::Color *negro = new Gdk::Color (0,0,0);
sty->set_bg (Gtk::STATE_NORMAL, *negro);
sty->set_text (Gtk::STATE_NORMAL, *blanco);
lblCan->modify_style (*sty);
lblCan->set_alignment (1.0, 0.0);
lblCan->set_text ("0 ");
pack_start (*lblCan);
show_all ();
Thanks in advance
___________________________________________________________
Do You Yahoo!?
La mejor conexión a Internet y <b >2GB</b> extra a tu correo por $100 al mes. http://net.yahoo.com.mx
More information about the Xfc-dev
mailing list