[Gtk-sharp-list] Trouble with Gtk.Window.Resize followed by Gtk.Window.GetSize
djsiegel at gmail.com
Fri Dec 21 14:50:38 EST 2007
I'm trying to hide/show a widget and then resize and re-center the parent
window immediately. How do I Resize a window, then get accurate size info
from GetSize? I say the note about this call sequence in the mono docs and
gtk docs, and I tried iterating the event loop to make the ConfigureEvent go
through. No dice -- I keep getting the wrong window size, so my window
position gets messed up. SetPosition(WindowPosition.AlwaysCenter) works
well, but I only want my window to center horizontally, with the window
positioned a third of the screen height from the top of the window.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Gtk-sharp-list