(1 item) |
|
(1 item) |
|
(5 items) |
|
(1 item) |
|
(1 item) |
|
(2 items) |
|
(2 items) |
|
(4 items) |
|
(1 item) |
|
(6 items) |
|
(2 items) |
|
(4 items) |
|
(1 item) |
|
(4 items) |
|
(2 items) |
|
(1 item) |
|
(1 item) |
|
(1 item) |
|
(1 item) |
|
(1 item) |
|
(1 item) |
|
(1 item) |
|
(1 item) |
|
(2 items) |
|
(2 items) |
|
(5 items) |
|
(3 items) |
|
(1 item) |
|
(1 item) |
|
(1 item) |
|
(3 items) |
|
(1 item) |
|
(1 item) |
|
(2 items) |
|
(8 items) |
|
(2 items) |
|
(7 items) |
|
(2 items) |
|
(2 items) |
|
(1 item) |
|
(2 items) |
|
(1 item) |
|
(2 items) |
|
(4 items) |
|
(1 item) |
|
(5 items) |
|
(1 item) |
|
(3 items) |
|
(2 items) |
|
(2 items) |
|
(8 items) |
|
(7 items) |
|
(3 items) |
|
(7 items) |
|
(6 items) |
|
(1 item) |
|
(2 items) |
|
(5 items) |
|
(5 items) |
|
(7 items) |
|
(3 items) |
|
(7 items) |
|
(16 items) |
|
(10 items) |
|
(27 items) |
|
(15 items) |
|
(15 items) |
|
(13 items) |
|
(16 items) |
|
(15 items) |
I've been meaning to write about this for ages. I've had a web browser window open on a page relating to this for well over a month now to remind me. I have to log out of my machine now, which has finally galvanised me into action. (Although that's not the only factor. Mozilla Firebird has been using more and more memory over the month or so it has kept that window open, which has made the need to blog about this so I can finally restart Firebird increasingly pressing. 150MB for one browser window can't be right...)
About a month and a half ago, I wrote an entry on drawing rubber band selection outlines in Avalon. Shortly after this, I got an email from Ethan Brown. He illustrates how to do resizable panels in Windows Forms here. The source is available at GotDotNet.
One of the interesting things about this example is that it illustrates exactly some of the problems with XOR that I discussed in my rubber banding blog entry. For example, if you Alt-Tab away from Ethan's demo application half way through a drag operation, it leaves some crud on the screen. (A direct result of the XOR-based drawing he is using for the drag outline.) Also, try opening the Windows Task Manager, making sure that the Always On Top option is enabled, and switch to one of the tabs that has moving stuff (e.g. the Performance tab with its CPU and memory usage graphs). Move the task manager partially over your application and then try dragging the rectangle around so that it moves over the task manager. You'll end up with cruft being left on the task manager window when it repaints. This illustrates that not only can you mess up your own window by using XOR, you can mess up other windows too! Popup windows showing up during a draw would also illustrate the same kinds of problems
But as Ethan said to me, he wasn't really aiming for production quality here - he wanted it to be good enough most of the time. And in many cases that's just fine. So if that describes your requirements, you may find the sample useful.
(And now I'm wondering why on earth it was it took me so long to get around to writing about this...)