[MonoDevelop] Does MD take notice of the WIndowPosition argument - either in code or via the GUI designer ?
brett_senior at yahoo.com.au
Thu Aug 14 05:52:57 EDT 2008
Have not yet tried your suggestion re Dialog.Run() as I have been looking further into the matter. What I've found is that all of my MD applications start in the top left corner and not in the centre as I have set in the MD designer. I have re-installed pretty well everything and it is still a problem. Is there any configuration item that either needs to be set or I should not have set that would impact on window placement ?
----- Original Message ----
From: Michael Hutchinson <m.j.hutchinson at gmail.com>
To: Brett Senior <brett_senior at yahoo.com.au>
Cc: MonoDevelop Mailing List <monodevelop-list at lists.ximian.com>
Sent: Thursday, 14 August, 2008 4:15:59 PM
Subject: Re: [MonoDevelop] Does MD take notice of the WIndowPosition argument - either in code or via the GUI designer ?
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.
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 Monodevelop-list