开发者

Gtk buttons over a Gtk drawing area

开发者 https://www.devze.com 2022-12-20 13:23 出处:网络
i\' working with Gtk developing some app. I must put s开发者_运维问答ome buttons over a map. I\'m drawing the map on a GtkDrawingarea, but i\'m not able to put buttons over it.

i' working with Gtk developing some app. I must put s开发者_运维问答ome 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


Suggestions:

  1. Put both the drawing area and the buttons inside a GtkFixed container. Probably not the best solution, because GtkFixed has no way of controlling the z-ordering (other than the order in which you add the widgets to it?)
  2. Instead of using GtkDrawingArea, use a canvas widget that can include other widgets, such as GooCanvas.


Why no other library? Any specific reason?

There is a library for exactly what you want

http://geocanvas.sourceforge.net/

0

精彩评论

暂无评论...
验证码 换一张
取 消