Re: GtkClist

From: Date: Thu, 20 Dec 2001 15:50:33 +0000
Subject: Re: GtkClist
References: 1  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-883@lists.php.net to get a copy of this message
On Thu, Dec 20, 2001 at 08:24:46AM -0600, Anson Rinesmith wrote : > 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? $clist->selection -- Please always Cc to me when replying to me on the lists.

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