Clipping Region Error in TCustomGrid Descendents (Windows only)
Original Reporter info from Mantis: TWhyman
-
Reporter name: Tony Whyman
Original Reporter info from Mantis: TWhyman
- Reporter name: Tony Whyman
Description:
This bug seems to be restricted to drawing to a bitmap (Memory DC) canvas under Windows. The same code under Linux/GTK2 seems to work fine.
The problem is illustrated by the attached small application. This has a single form with two panels. The top panle comprises an edit control. an image and a string grid. The bottom panel is initially an empty image.
Click on the "Image Copy" button and the top panel is rendered to a bitmap using its "PaintTo" method and the bitmap them displayed as the contents of the bottom panel.
Under Linux, the image is an exact copy of the top panel. Under Windows, the edit control and image are fine, while the string grid is no more than an empty box.
Steps to reproduce:
Run attached program under Windows.
Additional information:
The problem seems to be in the clip region. The attached patch appears to correct the problem.