[Gtk-sharp-list] How to centre the popup window on screen

Christopher David Howie me at chrishowie.com
Mon Apr 26 23:42:49 EDT 2010


On 04/26/2010 11:36 PM, Stephen Liu wrote:
> I can't resolve "set/get" on
> http://go-mono.com/docs/index.aspx?link=P%3aGtk.Window.WindowPosition
> public WindowPosition WindowPosition { set; get; }

This is a property definition.  It's saying that you can use
"yourWindow.WindowPosition = WindowPosition.Whatever;" to set the
position policy for your window.

> ON
> http://go-mono.com/docs/index.aspx?link=P%3aGtk.Window.WindowPosition
> 
> Member Name = None/Center/Mouse/CenterAlways/CenterOnParent

Again, check the docs to see what these mean:
<http://go-mono.com/docs/monodoc.ashx?link=T%3aGtk.WindowPosition>.

> Whether the line is;
> public WindowPosition WindowPosition { Center; CenterAlways; }

This line of code makes no sense.  I'm not sure what you mean by it, nor
what you are trying to accomplish with it.

-- 
Chris Howie
http://www.chrishowie.com
http://en.wikipedia.org/wiki/User:Crazycomputers

PGP key:

pub   2048R/CF8338F5 2010-04-14
      Fingerprint: 2B7A B280 8B12 21CC 260A  DF65 6FCE 505A CF83 38F5


More information about the Gtk-sharp-list mailing list