overlapping widgets gtk -


how can make widgets overlap 1 another.

lower should image, rest above can other widgets buttons.

alt text

subclass larger(parent) widget. in create() method or in constructor, add layout( or container) widget parent widget, inset others container. threat new subclass if single, specialized, version of super class.

a window example of parent widget, while fixed example container. child eventbox enclosing image. composite of these new window object has pictures can clicked.

for case of window's titlebar pixmap background, , buttons, try window image , fixed container hold buttons. fixed , image should able overlap fixed transparent, , image has no window.

if buttons what's needed, have @ button boxes , toolbars in list of gtk containers. may possible add image background 1 of those.

a different approach involves alignment widget(from same list). specifies smaller widgets positioned , sized in proportioned manner.

i assumed, oop, if it's not, organize creation of widgets 1 function. i've made composite widgets functionally in haskell(gtk2hs), , in guile gnome platform (with , without oop)


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

html - Instapaper-like algorithm -

c# - How to execute a particular part of code asynchronously in a class -