| View previous topic :: View next topic |
| Author |
Message |
rgljr
Joined: 10 Apr 2006 Posts: 15 Location: Minnesota, USA
|
Posted: Mon Jun 12, 2006 2:22 pm Post subject: Changing The Color of a frame |
|
|
I want to create a warning message in a red colored Frame.
$frame = &new GtkFrame("Warning");
Haven't had much sucess figuring out how to change the color of the frame yet. Any Help would be appreciated.
Inside the Frame will be the Warning Message which I have already figured out how to change to red text with PANGO.
Would also be interested in knowing how to change the width of the frame. |
|
| Back to top |
|
 |
cweiske
Joined: 08 Dec 2005 Posts: 454 Location: Leipzig/Germany
|
Posted: Mon Jun 12, 2006 2:36 pm Post subject: |
|
|
1. Please don't use "&" when creating instances, unless you use Gtk1. (Gnope uses Gtk2)
2. Have a look at the GtkStyle class. The Minesweeper game in Gnope uses it to change the background of buttons, and should be easily transferable to a frame. |
|
| Back to top |
|
 |
|