Background image
Serge Le Huitouze <[email protected]> Tue, 29 Jun 2010 21:41:19 +0200
| Newsgroups | gmane.comp.lang.ocaml.lib.gtk |
|---|---|
| Message-ID | <[email protected]> |
Hi there, Sorry for this very basic question, but I'm at a loss... Context: I have a legacy image representing an approximate map. I want to superimpose a grid on it, and put circles of different size/color in the individual squares based on some text data I'll read in a file. Then, I want to be able to change circles of an individual square simply by clicking on it (thus, cycling through the different circles available). Problem: I'm trying to adapt the "scribble.ml" example from http://plus.kaist.ac.kr/~shoh/ocaml/lablgtk2/lablgtk2-tutorial/a2692.html#AEN2697 I thought it'd be a good starting point, since this code draws little black squares inside a window. I figured adding my background image would do the trick... I managed to make my background image visible (by adding a call to "drawing#pixbuf" in the "expose" function), but then I don't see the little black squares! All other fiddlings I tried were unsuccessful at even making appear my background image! Any advice? Thanks in advance. --Serge