borderWidth = (self.Width - self.ClientSize.Width) / 2
titleBarHeight = self.Height - self.ClientSize.Height - borderWidth
print borderWidth
print titleBarHeight
I get 0 and 0.
in C#
int borderwidth = (this.Width - this.ClientSize.Width) / 2;
int titleBarHeight = this.Height - this.ClientSize.Height - borderWidth;
Console.WriteLine(borderWidth);
Console.WriteLine(titleBarHeight);
I get 4, 23.
Looks like this is a bug in IronPython.
--
View this message in context:
http://www.nabble.com/Cannot-get-border-width-of-a-form-in-IronPython-tp21762512p21762512.html
Sent from the Mono - WinForms mailing list archive at Nabble.com.
_______________________________________________
Mono-winforms-list maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-winforms-list