I am using Delphi XE3.
When I create a new VCL project and drop a TToolbar
on it, everything works fine - except when I activate Form1.DoubleBuffered
.
From that moment on, drawing of the toolbar is broken - in designtime, it's either black, transparent, or parts of the IDE (statusbar, toolbar, etc.) are copied into it. It changes between these options when I click on it and when I change to source code (F12) and back.
In runtime, it's always black.
With DrawingStyle=dsGradient
, everything works as expected. Switching back to dsNormal
breaks it again.
Deactivating Form1.DoubleBuffered
repairs it.
Any hints how to work around that issue?
When not to use DoubleBuffered
. Workaround here is to put theTToolBar
on aTPanel
. – NodOnAdvancedCustomDraw
event at thecdPrePaint
drawing stage (quite adirty workaround
though). – ExtrapolateDoubleBuffered
for deflickering VCL components, but for aTPaintBox
that is drawing a chart (with user interaction like zooming and dragging). I know I could use aTBitmap
(or aTImage
), but as longForm.Doublebuffered
works (and no other problems arise), I prefer the single click solution. – Graptolite