views:

178

answers:

0

Hi,

I have a Gtk Dialog which should pop up over my applications main window.

I tried the following:

  • dialog.TypeHint = TypeHint.Dialog;
  • dialog.Parent = applicationMainWindow;
  • dialog.TransientFor = applicationMainWindow;
  • dialog.SetPosition(WindowPosition.CenterOnParent);

In any combination I could think of. Nevertheless, when calling dialog.Run(), it pops up where it likes (at least on Windows, and thats where it actually matters in my case).

What do I need to do so that this dialog is really placed over my main window? Ideally it would be centered, but at least atop of it would be also great right now. Well, at least on the same monitor would be quite good as a start...

Thanks a lot for your answers.