[prev in list] [next in list] [prev in thread] [next in thread] 

List:       php-gtk-general
Subject:    Re: [PHP-GTK] GtkClist
From:       "Steph" <Steph.Fox () btinternet ! com>
Date:       2001-12-21 0:43:52
[Download RAW message or body]

- 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.




-- 
PHP-GTK General Mailing List (http://gtk.php.net/)
To unsubscribe, e-mail: php-gtk-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-gtk-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic