I have an application that creates other windows based on user response to 
menu's, and I'd like them to be centred on the application.  So, I have the 
following code, that I thought would work but I must be doing something wrong, 
as all windows are appearing at the top left corner of the screen, not the 
centre of the application.

                        win.WindowPosition = Gtk.WindowPosition.CenterOnParent;
                        
                        win.Modal = true;
                        win.TransientFor = this;

                        win.Show();
                        Application.Run();


 
Can anyone shed some light on why the above code does not work ?

Thanks,

Brett Senior.



      Win a MacBook Air or iPod touch with Yahoo!7. 
http://au.docs.yahoo.com/homepageset
_______________________________________________
Gtk-sharp-list maillist  -  Gtk-sharp-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list

Reply via email to