I have a TFrxWPtoolview component that's a descendant of TFrxStretchable.
I'm unsure what my DrawPart function should return.
According to the FastReport comments included in the source, the view's drawPart is called
in the TfrxEngine.SplitObjects function, and just before your comment, it says:
{ trying to place it }
{ DrawPart method returns the amount of unused space. If the view
can't fit in the height, this method returns the Height }
1 er com.
I don't understand, this is the first part of the TFrxStretchable
(CalcHeight has already been called and FR knows that it doesn't fit in height)
so DrawPart expects the preparation of the drawing of the 1st part,
I have a case where DrawPart returns 130 px (the view is 200 my text is 70 px),
but on the 1st draw, FR offers me a Height of 200 (FY1 - FY) whereas it should be 70
2nd com.
"Return the height, "
What height? That of the first part or the whole thing?
Regards
Bruno Petit
Itesya
Comments
See frxHTML.pas as a sample