Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Elizabeth Smith's Blog:
Treeviews and Cell Renderer Properties - Practical PHP-GTK
Oct 07, 2008 @ 12:53:09

New on her blog Elizabeth Smith talks about tree views and rendering in a PHP-GTK application (with sample code included).

I get this question a lot - "How do I change the background color of a single cell in a treeview?" If you look around you'll see a couple of ways of doing this using display callbacks and other highly processor and memory intensive methods - but there’s a much simpler way.

She explains how the tree views are rendered (with the GtkTreeView component, of course) via a "cell renderer" with different variations based on the contents of the cell - each with their own properties. Her example code illustrates how to manipulate this by making the tree object and attaching other columns to it with custom background properties. A quick screencast is included to show it in action.

tagged: treeview phpgtk window cell renderer property tutorial

Link:

Make Me Pulse Blog:
Yui Treeview with Php tidy
Jan 23, 2008 @ 17:18:00

Antoine Ughetto has quickly posted about an interesting combination - php_tidy and the Yahoo! YUI Treeview to easily make a nested, recursive list.

A rapid experimentation with php tidy and Yui treeview for rendering the DOM of a specific page. We user the tidy_parse_file() and a simple recursive function to display a treeview.

You can check out an example over on their demo page. Plug in your website of choice and get the resulting HTML stricture (all cleaned up) represented as a nice, ordered tree list.

tagged: tidy extension yui yahoo treeview html content

Link:


Trending Topics: