[Gtk-sharp-list] 'CentreOnParent' window position does not seem to work ?
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 ?
Win a MacBook Air or iPod touch with Yahoo!7. http://au.docs.yahoo.com/homepageset
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Gtk-sharp-list