[Gtk-sharp-list] 'CentreOnParent' window position does not seem to work ?
cdhowie at gmail.com
Thu Aug 14 11:25:23 EDT 2008
On Tue, Aug 12, 2008 at 11:48 PM, Brett Senior
<brett_senior at yahoo.com.au> wrote:
> The reason I use the Window class is that I want to use the GUI designer
> in MonoDevelop as well as the fact that some of the windows that I use are
> also in use as stand-alone applications. I don't think that it will be easy
> (or even possible) to sub-class the windows to the dialog class and still
> have things working the way that I want them to. When you use the 'modal =
> true' member it blocks until the user dismisses the window, so that
> behaviour is exactly what I want - it is only the window position that I am
> having problems with.
> Brett Senior.
I believe that the preferred way of approaching this is to create a
widget containing all of the dialog widgets that you need and drop
that widget on a Window or Dialog as you need it. This is, I believe,
what MonoDevelop does. Then if you change your UI design later by,
for example, merging a bunch of windows into a notebook you can do so
very quickly by re-using the widgets you have.
More information about the Gtk-sharp-list