Hi @curtisw,
i am trying to find the center of the screen in order to place a Form properly. Using below works fine under windows:
screen = Rhino.UI.RhinoEtoApp.MainWindow.Screen
w = screen.WorkingArea.Width
h = screen.WorkingArea.Height
center = Eto.Drawing.Point(
int(w/2 - self.ClientSize.Width/2),
int(h/2 - self.ClientSize.Height/2)
)
But on Mac i get this error for the first line:
Message ‘NoneType’ object has no attribute ‘Screen’
Is there a cross compatible way to find the screen center or a setting which forces a Form to open in the center of the screen ?
thanks,
c.