[MonoDevelop] Does MD take notice of the WIndowPosition argument - either in code or via the GUI designer ?
m.j.hutchinson at gmail.com
Thu Aug 14 02:45:59 EDT 2008
On Thu, Aug 14, 2008 at 1:41 AM, Brett Senior <brett_senior at yahoo.com.au> wrote:
> As per the following that I sent to the GTK# Mailing List, I have done some
> further testing:
> 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 =
> win.Modal = true;
> win.TransientFor = this;
> Can anyone shed some light on why the above code does not work ?
Have you tried a using window derived from Gtk.Dialog and calling
Dialog.Run () instead of Application.Run()? That's the only
significant difference I can see between what MD itself does and the
code you posted.
More information about the Monodevelop-list