[Mono-winforms-list] Cannot get border width of a form in IronPython
Sandy Armstrong
sanfordarmstrong at gmail.com
Sat Jan 31 10:03:25 EST 2009
On 01/31/2009 03:44 AM, vronskij wrote:
>
> borderWidth = (self.Width - self.ClientSize.Width) / 2
> titleBarHeight = self.Height - self.ClientSize.Height - borderWidth
>
> print borderWidth
> print titleBarHeight
>
> I get 0 and 0.
Are you really performing the print right after you set those variables?
If they're happening in different methods, you should probably prefix
with "self.". Just a guess...
Sandy
More information about the Mono-winforms-list
mailing list