October 2003 - Posts

Call me lazy, but I use the designer as an ad-hoc reference tool.

While moving AutoScroll = true from a form into a contained panel (the purpose being to add a status panel at the bottom), I found that the panel won't scroll with the wheel any more, so I've got to do it by hand.But I had to dig around to find the MouseWheel event, because it's not exposed to the designer.

Followup: Rather than do it by hand, just calling the subpanel's OnMouseWheel solved the problem. It meant I had to inherit the Panel class, and expose a function to do the bubbling, but as I'd already had the panel subclassed, it was 3 lines of additional code instead of trying to figure it out on my own.

So I'm refactoring my code to tighten things up and remove some hastily cut together rectangle merging code my Solitaire program, and double checking the docs, I come across Rectangle.Union(). This has saved me a good 50 lines of code and comments over my own hastily built code.

... when you add Ctrl-Z to stand for Undo even though you already have Ctrl-U.

I am finally able to release a version of Solitaire that I've been working on for some time now. I blogged about it earlier[1], but the link was inactive due to hosting issues.

The game itself, with card logic has been working for quite a while, but it's been a major problem drawing the cards, and getting everything to play naturally. I finally had a break-through due to an old post about Blitting bitmaps, so I'm releasing version .9 for comments, while I fine-tune and add a few more variants.

You can find it at http://www.szurgot.net/projects and it's the first one on the list.

And I've written a rambling article[2] on some of the methods I've tried to draw the cards in a quick manner.

[1] http://weblogs.asp.net/cszurgot/posts/23024.aspx

[2] http://weblogs.asp.net/cszurgot/posts/30563.aspx

Regarding Geek Plates: (http://blogs.gotdotnet.com/anathan/permalink.aspx/30f25917-5b1e-4760-b5da-e6b6b6b1dbce)

My last car had the plate “0 2 CODE”, which puts my feelings right out there.

Only reason I say ex-plate is because I traded the car in, and bought my wife a jeep, and haven't felt like customizing my current one.

More Posts