This is great news indeed! Glad all your problems so far got resolved.

Martin

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kevin Bjorke
Sent: Thursday, July 27, 2006 9:02 AM
To: Discussion of IronPython
Subject: Re: [IronPython] Working Beta7 WinForms Code fails under RC1

Changing "self.DefaultFont" to "Control.DefaultFont" results is a
different error:

        No overloads of DrawString could match(Graphics, str, Font,
SoildBrush, Point)
          DrawString(Graphics, str, Font, Brush, PointF)
          DrawString(Graphics, str, Font, Brush, RectangleF)

So I chnaged my (previously okay) Point to PointF... Got some more
array/list errors, fixed those, got the program up and running until
Iclicked the mouse:

        get_ModifierKeys() takes exactly -1 arguments (-1 given)

So I got all the self.ModifiersKeys properties poiting to "Control" too
-- seems to be running now but I'll have to go on a more detailed
property hunt later.

Good news: It does seem to run faster :)

Thamks!
KB

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Martin Maly
Sent: Thursday, July 27, 2006 12:34 AM
To: Discussion of IronPython
Subject: Re: [IronPython] Working Beta7 WinForms Code fails under RC1

This is really interesting error message. I am going to file a bug for
us to look into this for the final release. My guess is that the bug
here may be that we get confused by the static property being accessed
with "self" argument.

Could you try accessing the property as Control.DefaultFont ?

Thanks
Martin

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Kevin Bjorke
Sent: Wednesday, July 26, 2006 11:21 PM
To: Discussion of IronPython
Subject: Re: [IronPython] Working Beta7 WinForms Code fails under RC1

That was correct! Sadly now I'm getting an error when I trry to access a
Windwos Forms Panel DefaultFont property.

The line
        g.DrawString(self.block.name,self.DefaultFont, bb, Point(4, 2))

(g is a Graphics object -- this DID work under Beta 7!)

Results in the error

        get_DefaultFont() takes exactly -1 arguments (-1 given)

?

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Martin Maly
Sent: Wednesday, July 26, 2006 11:06 PM
To: Discussion of IronPython
Subject: Re: [IronPython] Working Beta7 WinForms Code fails under RC1

I wonder if the exception string is off a little. What it probably
should say is "expecting array, got list". We no longer have automatic
conversion from list to array. We have one from tuple to array, but not
from list.

You can construct the array explicitly:

System.Array[element_type](anything_enumerable)

Does this work?

Martin

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Kevin Bjorke
Sent: Wednesday, July 26, 2006 10:55 PM
To: Discussion of IronPython
Subject: [IronPython] Working Beta7 WinForms Code fails under RC1

I have these two lines which worked well under Beta7:

 cb = Drawing2D.ColorBlend()
 cb.Colors = [c,hilight,c,c]

Now I get an error saying "expecting list got array"

??
------------------------------------------------------------------------
-----------
This email message is for the sole use of the intended recipient(s) and
may contain
confidential information.  Any unauthorized review, use, disclosure or
distribution
is prohibited.  If you are not the intended recipient, please contact
the sender by
reply email and destroy all copies of the original message.
------------------------------------------------------------------------
-----------
_______________________________________________
users mailing list
users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
_______________________________________________
users mailing list
users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
_______________________________________________
users mailing list
users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
_______________________________________________
users mailing list
users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
_______________________________________________
users mailing list
users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
_______________________________________________
users mailing list
users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to