Hi! i' working with Gtk developing some app. I must put some buttons over a map. I'm drawing the map on a GtkDrawingarea, but i'm not able to put buttons over it. Any suggestion? Thanks
A:
Suggestions:
- Put both the drawing area and the buttons inside a
GtkFixed
container. Probably not the best solution, becauseGtkFixed
has no way of controlling the z-ordering (other than the order in which you add the widgets to it?) - Instead of using
GtkDrawingArea
, use a canvas widget that can include other widgets, such asGooCanvas
.
ptomato
2010-02-19 17:03:02
Thanks, but i can use only Gtk, no other library.
panda
2010-02-22 09:29:17
I thought of something else. If `GtkFixed` doesn't work then you might consider writing your own widget that inherits from the `GtkDrawingArea` class.
ptomato
2010-02-22 09:48:23
A:
Why no other library? Any specific reason?
There is a library for exactly what you want
kazanaki
2010-03-11 15:27:34