News Feed
Sections




News Archive
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
October 07, 2008 @ 07: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.

0 comments voice your opinion now!
treeview phpgtk window cell renderer property tutorial


blog comments powered by Disqus

Similar Posts

Mikko Koppanen's Blog: Creating buttons with Imagick

Hari KT's Blog: A simple Blog using Zend framework 1.9

NETTUTS.com: How to Implement Email Verification for New Members

PHP-GTK Community Site: GtkToolbar, GtkMenubar, and PEAR XML-RPC for geo-nick

Zend Developer Zone: Migrating applications from PHP 4 to Zend Core 2.5 w/support for IBM Informix


Community Events





Don't see your event here?
Let us know!


opinion laravel install podcast series unittest framework interview package introduction bugfix zendserver voicesoftheelephpant community symfony release api library language deployment

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework