Hi~ i'm a newbie in GTK programming.
I want to implement an application which has multiple windows...
I wrote my program in Xlib.. refer to the code below
{
root = DefaultRootWindow(d);
p = XCreateSimpleWindow (d, root, 100, 100, 600, 400, 2, Black,
White );
w1 = XCreateSimpleWindow (d, p, 50, 50, 200, 150, 2, Black, White );
w2 = XCreateSimpleWindow (d, p, 200, 100, 200, 150, 2, Black, White
);
w3 = XCreateSimpleWindow (d, p, 350, 200, 200, 150, 2, Black, White
);
}
but.. i should use libGTK...
I created toplevel window like this...
GtkWidget *win = gtk_window_new(GTK_WINDOW_TOPLEVEL);
and created other windows using gtk_window_new and linked all windows using
gtk_window_set_transient_for.
but, it did not work....
can somebody help me?
--
View this message in context:
http://www.nabble.com/How-can-i-write-multiple-windows%28MDI%29-tf3997719.html#a11353709
Sent from the Gtk+ - General mailing list archive at Nabble.com.
_______________________________________________
gtk-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gtk-list