A Couple of Questions

From: Date: Thu, 22 Dec 2005 20:47:10 +0000
Subject: A Couple of Questions
References: 1 2 3  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-6477@lists.php.net to get a copy of this message
---------- Forwarded message ---------- From: Malk0 <malk0.phpgtk@gmail.com> Date: 22 déc. 2005 21:45 Subject: Re: [PHP-GTK] A Couple of Questions To: Anant Narayanan <anant@kix.in> Hi, > > 3) What is the simplest way to put a tiled image into the background of > > a window and still be able to draw widgets in the foreground? > This is a tricky one, someone experienced can comment! As far I know, > you have to build a custom widget, since a GtkWindow can hold only 1 > child. So you'll have to get into the working of a GdkWindow, or you > could play around with a GtkDrawingArea. There may be simpler methods, > but I'm not aware of any. the best way to get a background image is to use gtkrc file you would find more info here: http://gtk.php.net/wiki/RcFile/RcFile if you want to put the image in the background of your drawinarea then start to draw it on your buffer and then draw the other things on top of it then refresh your drawingarea. hope this help , happy coding and merry christmas to all. nathan

« previous php.gtk.general (#6477) next »