Re: GtkClist

From: Date: Fri, 21 Dec 2001 00:43:52 +0000
Subject: Re: GtkClist
References: 1  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-890@lists.php.net to get a copy of this message
- ah, the old ones are the best :) - hope this gets thru okay. ----- Original Message ----- From: "Anson Rinesmith" <anson@lddcorp.com> To: <php-gtk-general@lists.php.net> Sent: Thursday, December 20, 2001 2:24 PM Subject: [PHP-GTK] GtkClist I am using GTK as a front end to a database (duh!). I am doing a query and putting the results in a clist. I'm including a snippet of relevant code. $clist = &new GtkCList(count($keys), $keys); $clist->connect('click_column', 'clist_click_column'); for ($i=0;$i<count($keys);$i++) $clist->set_column_auto_resize($i, true); $scrolled_win->add($clist); do { for($i=0; $i < count($data)/2; $i++){ $row_data[$i] = $data[$i]; } $clist->append($row_data); } while ($data = mysql_fetch_array($result)); I am getting a nice output to a window, I notice I can click on any row, and it highlight the entire row. How can I get the information out of a row, based on which one is highlighted? Thanks.

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