Re: Some things.

From: Date: Tue, 24 Jun 2003 00:14:15 +0000
Subject: Re: Some things.
References: 1  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-3566@lists.php.net to get a copy of this message
Dimitri Giardina wrote:
<pre>Sorry for my English</pre> from an experience of extensive programming on php, i've started to use some windows in php-gtk. in the 5.2 implementation (i wish that the development flow is'nt stopped), there's no class for use of the gtk_pixbuf (or i haven't seen yet). Steph was trying to get this to build a while ago, with some limited success...
i don't know gtk very deep; i see the creation of objects, the layout, the connection for events, the implementation of all this in objects, the loading of xpm files (for images). so,i want to develop big programs in php-gtk. because i know php, and i like it. some lacks, and some workarounds: 1) the absence of other image fileformats ... $imagemagick->convert($file_other, $file_xpm) -> load xpm. 2) the absence of gnome_canvas_item. (or similar). i see in the project gcompris (a tool for children that exists only under gnome... and the cygwin version of that isn't very easy to adapt), that the interface is structured as a tree of these "containers"; every object encapsulate a gtk object. gtkcanvas is in cvs, although I've no idea if it will build on windows yet. (it does work very well on unix)
gdkimlib has also been added, although I've not had a chance to test it.
an example (project): for making more "planes" in a window, the 1st step (for me) was to create an array of layers, where some layer is an array of bitmaps (moved each one to a point). all this structure acts in a gtkdrawingarea. the beatiful thing is that each bitmap has 3 states (over, clicked and normal). an alternative is to make a tree. (it's very easy). working with drawingarea is a bit painfull, but not too bad.
2step: let's use some other object. (and my mind wavers...) in gtk, there is a object that's named "gtkfixed", its dad is a "gtkcontainer" ;) with it, i can divide a screen into a rectangular blocks, and insert into them a widget. it's possible ? ( i don't see any example to do it). gtkmdbdesiger does this with a layout widget with gtktables on in.
http://devel.akbkhome.com/screenshots/Gtk_MDB/database_links2.png
any idea?


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