Re: an easy one...ctree question
| From: | Andrei Zmievski | Date: | Mon, 14 May 2001 17:08:53 +0000 |
| Subject: | Re: an easy one...ctree question | ||
| References: | 1 2 | Groups: | php.gtk |
| Request: | Send a blank email to php-gtk+get-1835@lists.php.net to get a copy of this message | ||
On Mon, 14 May 2001, Rich Payne wrote:
> On Mon, 14 May 2001, Steph wrote:
>
> > Rich, hi -
> >
> > You've defined $sibling using $sibling, won't that hurt it?
>
> Honestly....I don't know. I stole that bit of code from the gtk.php
> example included in php.gtk. I originally had it as NULL, but it seems to
> make little difference (at least in my case).
>
> > (Is this a brand new form of sibling rivalry?)
Ok, I implemented node_get_pixtext(). You should use something like
this:
if ($col == 0)
list($text, $spacing, $pixmap, $mask) = $tree->node_get_pixtext($node, $col);
else
$text=$tree->node_get_text($node,$col);
-Andrei
Give a man a fish; you have fed him for today. Teach a man to use
the Net and he won't bother you for weeks.
-Author unknown