[10515] in The GTK GIMP ToolKit mailing list archive
[gtk-list] Gtk_Fixed
daemon@ATHENA.MIT.EDU (Kasper Peeters)
Sun Nov 29 09:34:02 1998
From: Kasper Peeters <K.Peeters@damtp.cam.ac.uk>
Date: Sun, 29 Nov 1998 14:33:39 +0000 (GMT)
To: gtk-list@redhat.com
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com
Can anyone explain how Gtk_Fixed of gtk-- is supposed to work? I tried
something along the lines of
Gtk_Main mymain(&argc,&argv);
Gtk_Window mywindow();
Gtk_Fixed myfixed();
Gtk_Button mybutton("Hi there!");
mywindow.add(&myfixed);
myfixed.add(&mybutton);
myfixed.put(mybutton,100,50);
mybutton.show();
myfixed.show();
mywindow.show();
mymain.run();
but, depending on where I put the 'show' calls, this always seems to
yield a working example but runtime errors (complaining about null
children/parents) or nothing at all.
On a related topic: I was looking for a combination of a Gtk_Fixed
widget and a Gtk_DrawingBuffer widget, such that I can draw arbitrary
things at arbitrary locations _and_ put gtk widgets at arbitrary
locations too. How should I do that in gtk--?
Kasper
--
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null