PHP-GTK2 Newsletter
|
Sample Code 262: How to use GtkSheet - Part 15 - set column width? |
| Written by kksou | ||||||
| Tuesday, 12 June 2007 | ||||||
|
Problem This example shows you how to set the initial column width for GtkSheet 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 9 - using attach with justification? What's new here:
Note
As I've mentioned in the blog, there's some problem with this method. Try pressing the Tab key. Did you see the underlying GtkItemEntry? I'm not sure if this is a feature or a bug. Although I could find some ways to "gobble" up the Tab or arrow keys so that the GtkItemEntry doesn't appear, I know this should not be the right way of doing things. Anybody knows how to "deactivate" the underlying GtkItemEntry? Related Links
|
||||||
| < Prev | Next > |
|---|




