Re: Setting a color of a CList row/column on particular colums/rows

From: Date: Wed, 17 Oct 2001 02:47:34 +0000
Subject: Re: Setting a color of a CList row/column on particular colums/rows
References: 1  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-298@lists.php.net to get a copy of this message
This is a direct excerpt from gtk.php. Perhaps it will help some? Good Luck! Eric $col1 = &new GdkColor(56000, 0, 0); $col2 = &new GdkColor(0, 56000, 32000); $style = &new GtkStyle; $style->fg[GTK_STATE_NORMAL] = $col1; $style->base[GTK_STATE_NORMAL] = $col2; $style->font = gdk::font_load ("-adobe-helvetica-bold-r-*-*-*-140-*-*-*-*-*-*"); for ($i = 0; $i < 10; $i++) { $texts[0] = sprintf('CListRow %d', $clist_rows++); $clist->append($texts); switch ($i % 4) { case 2: $clist->set_row_style($i, $style); break; default: $clist->set_cell_style($i, $i % 4, $style); break; } } On Tuesday 16 October 2001 10:09 pm, PQ Administrator wrote: > How can I set the color of a certain column or row in a CList.... for > instance if Im comparing two sets of data and 1 field from one set doesnt > match the other set.... how do I set a color to highlight that field? > > Thanks in advance...Troy McComasNetworks/System > Admin.PhysicianQuest.comE-Mail Me!Office - (818)550-8777 Cell- > (626)255-9833 <!-- --> > Powered by PhysicianQuest.com ---------------------------------------- Content-Type: text/html; charset="iso-8859-1"; name="Attachment: 1" Content-Transfer-Encoding: base64 Content-Description: ---------------------------------------- ---------------------------------------- Content-Type: text/plain; charset="us-ascii"; name="Attachment: 2" Content-Transfer-Encoding: 7bit Content-Description: ----------------------------------------

« previous php.gtk.general (#298) next »