When the CodeRush (7.04) Surface Designer Technology is enabled and the LookAndFeel is set to NativeStyle, adding a page to a TcxPageControl in design-time causes an access violation with the following stack trace:
007b75ff +007 vcl70.bpl Graphics TCanvas.GetHandle
0a986407 +003 cxLibraryVCLD7.bpl Cxgraphics TcxCanvas.GetHandle
0a987cc4 +01c cxLibraryVCLD7.bpl Cxgraphics TcxCanvas.RestoreDC
0a985ee4 +04c cxLibraryVCLD7.bpl Cxgraphics cxDrawTransparentControlBackground
0a985f28 +034 cxLibraryVCLD7.bpl Cxgraphics cxDrawTransparentControlBackground
0af46615 +039 cxPageControlVCLD7.bpl Cxpcpainters TcxPCTabsPainter.PrepareTabBitmapBackground
0af464cb +0df cxPageControlVCLD7.bpl Cxpcpainters TcxPCTabsPainter.PrepareTabBackground
0af4a667 +083 cxPageControlVCLD7.bpl Cxpcpainters TcxPCStandardPainter.PaintTab
0af4636d +035 cxPageControlVCLD7.bpl Cxpcpainters TcxPCTabsPainter.PaintTabsRegion
0af5b5f5 +01d cxPageControlVCLD7.bpl Cxpc TcxPCCustomPainter.InternalPaint
0af5b90b +007 cxPageControlVCLD7.bpl Cxpc TcxPCCustomPainter.Paint
0af4982d +009 cxPageControlVCLD7.bpl Cxpcpainters TcxPCStandardPainter.Paint
0af45dd4 +000 cxPageControlVCLD7.bpl Cxpcpainters TcxPCTabsPainter.Paint
0af5872a +03a cxPageControlVCLD7.bpl Cxpc TcxCustomTabControl.Paint
008391bf +057 vcl70.bpl Controls TCustomControl.PaintWindow
00834e2e +04e vcl70.bpl Controls TWinControl.PaintHandler
0083535b +03f vcl70.bpl Controls TWinControl.WMPaint
00839158 +010 vcl70.bpl Controls TCustomControl.WMPaint
0a96d555 +011 cxLibraryVCLD7.bpl Cxcontrols TcxControl.WMPaint
We updated from 6.35 today, which did not have this problem.
Steps to Reproduce:
- Create a new application
- Add a TcxLookAndFeelController, set NativeStyle to True
- Add a TcxPageControl
- Add a New Page
Actual Results:
AV