[Mono-winforms-list] Cannot get border width of a form in IronPython
vronskij
vronskij at gmail.com
Sat Jan 31 06:44:56 EST 2009
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.
More information about the Mono-winforms-list
mailing list