Hi all,
I'm currently struggling with getting all the events used when minimizing, maximizing, resizing e.t.c of a UserControl. What I want to acheive is to use the events initiated both before and after minimizing, maximizing, and resizing. I've seen that there are LostFocus and GotFocus. Some can be overridden. I can capture the graphics of the control to memory and Blit it back to the control. I just need to find the correct events for this.
I've overridden LostFocus to capture the initial graphics and Paint to paint the graphics back. But it doesn't work for resizing.
Any help will be appreicated thanks.
Loading
christian de wetPosted Nov 7, 2007, 1:18 AM
Sorry for the late reply, thinkgs have been hectic.
I'll check out the background thing, thanks.
That Ant-Grain stuff looks pretty impresive. I'll check it out.
The BitBltting is working well and fast!. I did struggle in the beginning a bit. But got things to work out eventually. It's pretty amazing how the speed increases from GDI+! is pretty cool.
Regards,
Nathanael
Richard BlythePosted Nov 5, 2007, 12:06 AM
Hey man!
Are you wanting to store a copy of the usercontrol's surface so you won't have to redraw the control? If so, you might want to create an bmp var called: bmpCurrentSurface and update it when a change is made.
Didn't I chat with you about BitBlting graphics? I would love to hear how things are working for you. My vector graphics program is on hold right now but I may be able to glean something from what you've found. I've just discovered something called:
"Anti-Grain Geometry". It is a collection of low level C++ graphic algorithms. The rendering speed is said to much faster than GDI and the anti-alias algorithm is definitely better. Right now I'm am chatting with a guy who is writing a C# wrapper for it to be more user friendly for us C# guys. Check out the screen shots at http://www.antigrain.com/
Until next time,
Richard