Re: why button is hidden behind drawing area(win32)



On Mon, Jun 05, 2006 at 10:48:55PM +0900, Li Ni wrote:
Hello everyone.
I am a newbie of glib/gtk+. And I'm porting a app to win32.
Following code is compiled with ms vc7.1 + gdk2.8.x,
When I run it. I found the button is hidden behind the drawing_area
and  I can not got it displayed. Who can tell me why?
I've not tested the code under Linux.

Any help will be appreciated.


#include <gtk/gtk.h>

int main(int argc, char *argv[])
           ^^^^^^^^^^^^^^^^^^^^^^  

[...]
   GtkWidget* fixed = gtk_fixed_new();
   gtk_container_add(GTK_CONTAINER(window), fixed);
[...]
   gtk_fixed_put(GTK_FIXED(fixed), drawing_area, 0, 0);
[...]
   gtk_fixed_put(GTK_FIXED(fixed), btn_play, 15, 15);
[...]

I don't think it is supposed to work like this. I mean, two overlapping
widgets in a fixed. But maybe I am off.

(BTW: I tested your code under Gnu/Linux, a fairly recent Ubuntu. Same
behaviour: the DrawingArea covers up the button).

Regards
-- tomás


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]