Showing a widget above a widget in GTK
I am currently modifying the gtkVNC Widget and I am trying to overlay a button above the gtkVNC Widget when my mouse is on top i.e. y < 10.
I am having trouble overlaying a gtkButton above a gtkVNC widget. In fact, I have problems overlaying a widget above a widget. Any idea if this can be done? How do i put a widget above a widget? I am trying to but a button widget above a gtkVNC container widget. Thanks aaron |
Just a tip:
Try to give parent-child relationship to the widgets. Thanks |
Hi there,
First off, thank so much for replying! I tried setting a parent child raltionship. I understand it is very simply: gtk_container_add(MYCONTAINER, MYBUTTON); But that didn't solve it. The button is still on top of the container and not overlayed on the container. In HTML, div has something like this call Z-INDEX, but is there something like this in GTK? This is how it looks like currently: ---------------------------- | button here | ---------------------------- | | | | | | ---------------------------- But I need it like this: ---------------------------- | | | button here | | | | | | | ---------------------------- Any ideas? Thank you! |
Quote:
http://www.gtkforums.com/ http://www.gtk.org/tutorial1.2/gtk_tut-2.html#ss2.1 |
I have been able to do similar things by packing two widgets into the same cell of a table widget. Experiment in glade until you get it how you want it.
|
All times are GMT -5. The time now is 11:58 AM. |