TButton on TImage have graphic bug when DoubleBuffered on form is True
We are now migrating to Delphi XE (from D7) and we have a problem with TButton placed on TImage when Form.DoubleBuffer = True
Without DoubleBuffer - OK:
Around the but开发者_运维技巧ton is white border. Without DoubleBuffering is button ok, but form flicker when resizing.
In Delphi XE2 is same problem.
As documented here: http://qc.embarcadero.com/wc/qcmain.aspx?d=75246
Tomohiro Takahashi at 9/6/2010 12:53:44 AM*
....
WithDoubleBuffered = False
on the form:Black borders = Test Case Error (set DoubleBuffered to True on the form)
With
DoubleBuffered = True
on the form:White borders = Cannot Fix (Windows theme library doesn't paint button Caption in a way that's readable with GDI forcing VCL to make black opaque which prevents black from being used to make the border transparent)
Solution: Use TBitBtn instead.
精彩评论