PHP-GTK2 Newsletter
|
Sample Code 3: How to set the background color of GtkWindow? |
| Written by kksou | ||||||
| Tuesday, 12 September 2006 | ||||||
|
Problem You want to set the background color of GtkWindow as follows:
Solution
Sample Code
Explanation The As for the first argument, they do have quite a bit of explanation in the php manual. But if all you want is to set the background color of the window, just use Notes
This works with some of the other widgets, but not all. Some widgets in PHP-GTK2 are "transaparent", meaning they take on the background color of the widgets they are residing in. So using Setting the background color of widgets such as labels and buttons requires other techniques. This is covered in "How to set the background color of GtkLabel" User reviews Average user ratings: 4.0 (from 5 users) Note: You have to be a registered member to leave a comment. Free registration here. |
||||||
| < Prev | Next > |
|---|







June 17, 2008 9:22am
August 06, 2008 2:38pm
September 17, 2008 9:38pm
great and very easy too
October 22, 2008 2:22am
March 06, 2009 2:51pm