Re: [GtkcList] How to get data from a selected row?
| From: | Andy | Date: | Mon, 17 Nov 2003 20:09:33 +0000 |
| Subject: | Re: [GtkcList] How to get data from a selected row? | ||
| References: | 1 2 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-4169@lists.php.net to get a copy of this message | ||
assuming the followiong example:
$text = get_text(1,0);
i can retrieve the text of the first row (column 0), but in what mode this
function works for the 'current selected row'?
get_row is not documented very well
thank u
Andy
"Radko Sharkov" <radkosharkov@rodopi.com> ha scritto nel messaggio
news:3FB92591.1060003@rodopi.com...
>
> Hi,
>
> If you want to get the text from a arbitrary cell you should to use :
> ->get_text( $nRowNumber, $nColumnNumber) - method
> of GtkCList object
> Both - $nRowNumber and $nColumnNumber are 0 based !!!
>
> If you want to get the additonal data from a row you shold to use :
> ->get_data() - method derived from GtkObject class
>
>
> regards,
> Radko
>
>
> Andy wrote:
>
> >I must write a function to retrieve the data of a selected row in a
gtkclist
> >widget.
> >
> >Thanks for all
> >
> >Andy
> >
> >
> >