Re: Color in CList



I'm doing it this way :

 ast_ulong lI;
 GdkColor couleur_impaire;
 GdkColormap *colormap;


/* aWindowsInfo_X.paIHMData->wndSpatio is a GtkWidget* pointing to the
window of my GUI */
 colormap = gtk_widget_get_colormap(aWindowsInfo_X.paIHMData->wndSpatio);

 couleur_impaire.red  = 19005;
 couleur_impaire.green = 39976;
 couleur_impaire.blue = 54394;
 gdk_color_alloc(colormap, &couleur_impaire);


/* I m only colorizing the odd lines */
 for (lI = 0 ; lI < lNbLines_E ; lI++)
 {
  if(!(lI % 2))
  {
   gtk_clist_set_background((GtkCList *)lstGtkCList_E, lI,
&couleur_impaire);
  }
 }




Best regards,
---
Jean-Christophe Berthon

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


----- Original Message -----
From: "Gutemberg" <gutoav enersulnet com br>
To: "Lista Gtk" <gtk-app-devel-list gtk org>
Sent: Sunday, October 21, 2001 4:56 AM
Subject: Color in CList


It is possible to put color in just a column or just a line in a CList ?



_______________________________________________
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]