No snapshot this week unfortunately. I started last week by transferring the QuickView prototype code into CE. Once everything was up and running I noticed severe painting issues on resize. It was something I hadn’t seen before and it made very little sense. So I spent many days in trying to figure out what the problem was. Eventually I realized that the problem appeared when using too many nested windows. In the prototype everything worked fine because I was using only few nested windows but since CE has more complex layout, the limit was reached.
It turned out to be a limit in Windows Kernel that caused those painting issues. Here’s a good description about the issue by Jordan Russell: http://news.jrsoftware.org/news/toolbar2000/msg07779.html. Thankfully there was already a fix available so I didn’t have to do any major changes.
For those interested, here’s the fix (credits goes to Andreas Hausladen)
ControlResizeBugFix.pas (not needed for Delphi 2009 and up)