GtkClist
| From: | (Anson Rinesmith) | Date: | Thu, 20 Dec 2001 14:24:46 +0000 |
| Subject: | GtkClist | ||
| Groups: | php.gtk.general | ||
| Request: | Send a blank email to php-gtk-general+get-882@lists.php.net to get a copy of this message | ||
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.