Page 1 of 1

PrintPreview - DoubleBuffered

PostPosted: February 18th, 2014, 1:03 pm
by thecocce
Hi all, i have a problem with TThumbnailPreview component.
If the container form prop DoubleBuffered is set to true all the thumbnails are shown as black rectangles.

Is there a workaround about this problem?

Thanks in advance

Re: PrintPreview - DoubleBuffered

PostPosted: February 18th, 2014, 7:29 pm
by arhangelsoft
Hi, I think this is a internal VCL problem.

Drop TToolBar on Form, set doublebuffered to true, in run-time or even design-tim, u will see your problem again. All TToolButton's will view as black squares.
I have this bug on Delphi XE4 with all updates.

Re: PrintPreview - DoubleBuffered

PostPosted: February 18th, 2014, 8:45 pm
by Kambiz
All of print preview components have their own double buffering mechanism. For this reason setting DoubleBuffered to true does nothing but decreasing the performance.

Re: PrintPreview - DoubleBuffered

PostPosted: February 24th, 2014, 8:51 am
by thecocce
Ok, but is there a workaround about this problem?
Is not just a decrease of performances, the component doesn't work.
If i need to use Doublebuffer for other component in a form i can't use PrintPreview.

Thanks in advance

Re: PrintPreview - DoubleBuffered

PostPosted: March 1st, 2014, 1:24 pm
by Kambiz
Which version of Delphi?

I have only Delphi 7 and in this version I see no issues.

Anyway, instead of using double buffered form, only set the DoubleBuffered property of the control that needs it. If there are many controls needing double buffering and they change all tohether, put them on a panel and set DoubleBuffered property of the panel.