RE: [PHP-GTK] GtkCList -- determine which column is clicked

From: Date: Fri, 05 Sep 2003 09:23:09 +0000
Subject: RE: [PHP-GTK] GtkCList -- determine which column is clicked
References: 1  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-3801@lists.php.net to get a copy of this message
Hi > I found the click_column signal -- but how can I tell which > of the two columns were clicked? Some sample code: function onCListClickColumn( $clist, $column) { if( $column == $clist->sort_column) { if ($clist->sort_type == GTK_SORT_ASCENDING) { $clist->set_sort_type(GTK_SORT_DESCENDING); } else { $clist->set_sort_type(GTK_SORT_ASCENDING); } } else { $clist->set_sort_column($column); } $clist->sort(); }//function onCListClickColumn( $clist, $column) That sorts ALL columns! You don't even have to implement a sort for each column. Regards/MfG, Christian Weiske <<<<<<<<<<<<<<>>>>>>>>>>>>>>>> Christian Weiske cweiske@cweiske.de www.cweiske.de <<<<<<<<<<<<<<>>>>>>>>>>>>>>>> Always forgetting birthdays? Try birthday reminder! http://www.cweiske.de/birthday.htm Free ecards @ http://ecards.cweiske.de

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