TTreePage error

TeeTree VCL for Borland Delphi and C++ Builder.
Post Reply
David
Newbie
Newbie
Posts: 4
Joined: Mon Jan 31, 2005 5:00 am
Location: Idaho
Contact:

TTreePage error

Post by David » Tue Apr 12, 2005 10:36 pm

TTreePage.Refresh has a problem when using the UsePrinter flag. When UsePrinter is True the GetWidth and GetHeight works correctly to return the printer values. However, in Refresh the FWidth and FHeight are used and the UsePrinter flag has no effect. Thus the default values at creation are used and paging is incorrect for the most part.

My work around is the set UsePrinter true. Retrieve the printer values and then set the Width and Height. If page orientation changes I have to make sure it is done again.

tom
Advanced
Posts: 211
Joined: Mon Dec 01, 2003 5:00 am
Contact:

Post by tom » Wed Apr 13, 2005 6:37 pm

Thanks for the bug-report. I'll add it to the maintenance list, so it can be fixed in future releases.

Post Reply