开发者

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:

TButton on TImage have graphic bug when DoubleBuffered on form is True

With DoubleBuffer - WRONG:

TButton on TImage have graphic bug when DoubleBuffered on form is True

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*

....
With DoubleBuffered = 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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜