A little help please

View: New views
1 Messages — Rating Filter:   Alert me  

A little help please

by Ricardo M-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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 

_______________________________________________
Xfc-dev mailing list
Xfc-dev@...
http://foo-projects.org/mailman/listinfo/xfc-dev