Re: How can I add small font and new line recognisable string into a CList cell?



Thanks a lot Berthon,

The first problem have been solved, how about the second question that is about how to
add a *new line recognisable string *into a CList  cell?

eg.
There is a string like that " ABC\ndef", and added to a cell.
The expected outcome of the clist cell is as follow..
______
| ABC |
| def    |
---------

Any suggestion is appreciated.
Thanks,
Kai








Jean-Christophe Berthon wrote:

for the small font thing you can use GtkStyle :

 pxUneditableStyle = gtk_style_copy(gtk_widget_get_default_style());

 ttfPolice = gdk_font_load("-*-arial-bold-i-*-*-*-200-*-*-P-*-iso8859-1");
/* 200 is big you can change it to 100 or something else to make it smaller
*/
 if (ttfPolice != NULL)
 {
  gdk_font_unref(pxUneditableStyle->font);
  pxUneditableStyle->font = ttfPolice;
 }

 gtk_style_ref(pxUneditableStyle);



Best regards,
---
Jean-Christophe Berthon

Cap Gemini -- Ernst & Young
France
Skill IS -- Image Quality
Email: Jean-Christophe Berthon cgey com
Tel: (+33) 561 31 6671


----- Original Message -----
From: "kai" <tklam fieldtech com hk>
To: "gnome" <gtk-app-devel-list gnome org>
Sent: Wednesday, April 17, 2002 12:34 PM
Subject: How can I add small font and new line recognisable string into a
CList cell?


Thanks ^.^

_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list








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