PHP-GTK2 Newsletter
|
Sample Code 251: How to use GtkSheet - Part 6 - non editable browser mode? |
| Written by kksou | ||||||
| Wednesday, 06 June 2007 | ||||||
|
Problem You have displayed a 2D array in a GtkSheet in How to use GtkSheet - Part 3 - set values?. Instead of allowing the user to change the cell contents, you would like to set up the GtkSheet in browser mode so that the cell contents are non-editable (similar to a standard GtkTreeView) as shown below:
Solution
Important Note: This only works for PHP-GTK2 compliled with the additional library GtkExtra. For linux, you can download the files from http://gtkextra.sourceforge.net/ and do a recompile. For windows, you may use the builds by Elizabeth Smith or the official php-gtk2 beta release available at http://gtk.php.net/download.php. Both contain all the required gtkextra libraries and dll's. In the Sample Code
Explanation The example above is based on How to use GtkSheet - Part 5 - set row and column headers? What's new here:
Related Links
User reviews Average user ratings: 5.0 (from 1 user) Note: You have to be a registered member to leave a comment. Free registration here. |
||||||
| < Prev | Next > |
|---|







April 26, 2008 10:11pm