I don't know if anyone's ever heard of the Games::Worms module, but I'm attempting to make a Win32::GUI viewer for it, and I'm having a few problems.

First, I can't get the DC::BackColor function to work. I've tried [0,0,0] and 0, but neither seems to work.

Second, every so often the current picture disappears, resulting in a gray background again, and things pick up again where they left, but everything I've drawn before is just gone. I have a border around the graphic control, and it doesn't appear at first, but as soon as the first picture blanking occurs, the border appears.

Third, I tried placing Win32::GUI::DoEvents in the sub that draws the worm segments, but it never returns, so the script sits there forever. I'm not sure if this is a Graphic problem or not, but I've never run into it before.

I don't use _Paint, because the Worms calls a sub named draw, which I have to override in my class. I thought perhaps that was my problem, so I set up a _Paint sub that simply gets the DC and then validates, but it made no difference.

If nobody recognizes these problems, I'll try to reproduce them in a standalone script, since probably nobody else has Games::Worms.


_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx


Reply via email to