PrintPreview - DoubleBuffered

Please post bug reports, feature requests, or any question regarding the DELPHI AREA products here.

PrintPreview - DoubleBuffered

Postby thecocce » 18/02/14 13:03

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
thecocce
Member
Member
 
Posts: 2
Joined: 31/07/13 15:06

Re: PrintPreview - DoubleBuffered

Postby arhangelsoft » 18/02/14 19:29

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.
arhangelsoft
Junior Member
Junior Member
 
Posts: 36
Joined: 16/02/12 21:56
Location: Belarus, Minsk

Re: PrintPreview - DoubleBuffered

Postby Kambiz » 18/02/14 20:45

All of print preview components have their own double buffering mechanism. For this reason setting DoubleBuffered to true does nothing but decreasing the performance.
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2367
Joined: 07/03/03 19:10
Location: The Netherlands

Re: PrintPreview - DoubleBuffered

Postby thecocce » 24/02/14 08:51

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
thecocce
Member
Member
 
Posts: 2
Joined: 31/07/13 15:06

Re: PrintPreview - DoubleBuffered

Postby Kambiz » 01/03/14 13:24

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.
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2367
Joined: 07/03/03 19:10
Location: The Netherlands


Return to DELPHI AREA Products

Who is online

Users browsing this forum: Baidu [Spider] and 1 guest