miltondp at gmail.com
Sun Aug 27 21:09:36 EDT 2006
Hi. I have a question, I hope you help me. Look at this code:
public IngresarPersona(Gtk.Window parent)
Glade.XML gxml = new Glade.XML (null, "ingresarpersona.glade",
gwIngresarPersona.DeleteEvent += on_gwIngresarPersona_delete;
btnCancelar.Clicked += on_gwIngresarPersona_delete;
btnAceptar.Clicked += OnbtnAceptarClicked;
gwIngresarPersona.TransientFor = parent;
gwIngresarPersona.WindowPosition = WindowPosition.CenterOnParent;
The window is centred if I run the program on Linux, but not on Windows.
I don't understand why that happen on Linux, because the window is
displayed when the XML object is created (first line) and then I set the
TransientFor and WindowPosition properties, so it should not be centred.
Well, on Windows the window is not centred, how I expected. What can I
do to not let the XML object display the window until I set the
properties I need?
Jabber ID: milton.pividori at jabberes.org
GnuPG Public Key: gpg --keyserver wwwkeys.pgp.net --recv-key 0x663C185C
More information about the Gtk-sharp-list