[Gtk-sharp-list] Trouble with Gtk.Window.Resize followed by Gtk.Window.GetSize

David Siegel 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.

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20071221/8f992cee/attachment-0001.html 


More information about the Gtk-sharp-list mailing list