PrintPreview - DoubleBuffered

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

PrintPreview - DoubleBuffered

Postby thecocce » February 18th, 2014, 1:03 pm

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: July 31st, 2013, 3:06 pm

Re: PrintPreview - DoubleBuffered

Postby arhangelsoft » February 18th, 2014, 7:29 pm

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: 39
Joined: February 16th, 2012, 9:56 pm
Location: Belarus, Minsk

Re: PrintPreview - DoubleBuffered

Postby Kambiz » February 18th, 2014, 8:45 pm

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: 2429
Joined: March 7th, 2003, 7:10 pm

Re: PrintPreview - DoubleBuffered

Postby thecocce » February 24th, 2014, 8:51 am

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: July 31st, 2013, 3:06 pm

Re: PrintPreview - DoubleBuffered

Postby Kambiz » March 1st, 2014, 1:24 pm

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: 2429
Joined: March 7th, 2003, 7:10 pm


Return to DELPHI AREA Projects

Who is online

Users browsing this forum: No registered users and 28 guests

cron