PHP-GTK2 Newsletter
|
Sample Code 9: How to put a border around GtkLabel? |
| Written by kksou | ||||||
| Wednesday, 13 September 2006 | ||||||
|
Problem You want to achieve the following:
Solution
Sample Code
Explanation You can add a border to GtkLabel with GtkFrame. Note 1: this sets the color of the border. Note the use of modify_bg and not Note 2: this make sure that php-gtk doesn't change the size of title. Note 3: this makes the body text stretechable, that is, it will take on whatever space remains below the title. You may want to compare this with setting background color of GtkLabel. The concept is exactly the same, except a border uses GtkFrame, and setting background color uses eventbox. User reviews Average user ratings: 3.5 (from 2 users) Note: You have to be a registered member to leave a comment. Free registration here. |
||||||
| < Prev | Next > |
|---|







3.5 (from 2 users)
July 10, 2008 8:28pm
August 27, 2009 2:47am