Re: Background image

Richard Jones <[email protected]> Tue, 6 Jul 2010 09:09:07 +0100
Newsgroups gmane.comp.lang.ocaml.lib.gtk
Message-ID <[email protected]>
On Tue, Jul 06, 2010 at 05:21:34AM +0200, Serge Le Huitouze wrote:
> But from many exhausting searches on the web, it seems that documentaiton
> for lablgtk2 is a recurring request.

Have a look at:
  http://plus.kaist.ac.kr/~shoh/ocaml/lablgtk2/lablgtk2-tutorial/

But also have a look at the main Gtk documentation starting here:
  http://library.gnome.org/devel/gtk/unstable/index.html

in particular:
  http://library.gnome.org/devel/gtk/unstable/gtkobjects.html

Lablgtk implements nearly all of Gtk, just doing a direct mapping of
the C calls.

Gtk itself is not so easy, but I suggest looking at the lablgtk
tutorial above and also at C Gtk tutorials and examples and just
translating those into lablgtk.  That's how I learned it anyway ...

As I said before, drawing_area / GtkDrawingArea is a particularly
complex widget to start with.  It might be better to start with some
simple buttons and labels to get the feel for it instead of jumping in
at the deep end.

> Could you send me some working code like what you mentioned above?

Unfortunately it is proprietary code so I cannot share it.

If you want to see some code that I'm writing at the moment (not using
drawing_area unfortunately) have a look at:
  http://git.annexia.org/?p=guestfs-browser.git;a=summary

Rich.

-- 
Richard Jones
Red Hat