[Gtk-sharp-list] 'CentreOnParent' window position does not seem to work ?

Brett Senior brett_senior at yahoo.com.au
Tue Aug 12 01:30:12 EDT 2008

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;


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


Brett Senior.

      Win a MacBook Air or iPod touch with Yahoo!7. http://au.docs.yahoo.com/homepageset
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20080811/1653a3fb/attachment.html 

More information about the Gtk-sharp-list mailing list