gnope php gtk gui gnope.org  

Changing The Color of a frame

 
Post new topic   Reply to topic    gnope.org Forum Index -> PHP GTK2 Beginners
View previous topic :: View next topic  
Author Message
rgljr



Joined: 10 Apr 2006
Posts: 15
Location: Minnesota, USA

PostPosted: Mon Jun 12, 2006 2:22 pm    Post subject: Changing The Color of a frame Reply with quote

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

PostPosted: Mon Jun 12, 2006 2:36 pm    Post subject: Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    gnope.org Forum Index -> PHP GTK2 Beginners All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Templates enhanced by DigiWiki. Hosting by Tradebit.