On Tue, Aug 12, 2008 at 1:30 AM, Brett Senior <[EMAIL PROTECTED]> wrote: > 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 ?
I haven't tested it, but I am curious why you have a call to Application.Run at that point. Surely you have already entered the main loop? -- Chris Howie http://www.chrishowie.com http://en.wikipedia.org/wiki/User:Crazycomputers _______________________________________________ Gtk-sharp-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
