[Gtk-sharp-list] 'CentreOnParent' window position does not seem to work ?
cdhowie at gmail.com
Tue Aug 12 01:35:28 EDT 2008
On Tue, Aug 12, 2008 at 1:30 AM, Brett Senior <brett_senior at yahoo.com.au> 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 =
> win.Modal = true;
> win.TransientFor = this;
> 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
More information about the Gtk-sharp-list