[Gtk-sharp-list] Creating modal dialogs

Fredrik Nilsson jymdman@home.se
Tue, 15 Mar 2005 18:25:38 +0100


Hi Mike,

Try this:  modal_window.TransientFor = parent_window;

/Fredrik


On tis, 2005-03-15 at 11:41 -0500, Mike Flippin wrote:
> Could someone tell me how you create a modal dialog over a window? I 
> have two windows and want one to be a modal dialog, and it is set to be 
> a modal window the glade xml file, but I cannot find anything in the 
> docs that lets me make it modal for the main window of my program. I 
> tried setting the main window's Child property equal to the modal 
> window, but that failed. Also is there any guide out there that is 
> relatively up to date for people coming to Gtk# from other toolkits like 
> Swing? Thanks.
> 
> Mike
> _______________________________________________
> Gtk-sharp-list maillist  -  Gtk-sharp-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
>