Extending TfrxStretcheable: how to use InitPart and Drawpart

edited February 2008 in FastReport 4.0
Hi,

I'm writing a custom report component that extends TfrxStretcheable. According to the developer manual i should override CalcHeight, InitPart and DrawPart. so far i've overridden CalcHeight and that works fine: the component now stretches properly based on the size of the data that are placed in the component. However, i'm a bit puzzled about the use of InitPart and DrawPart. How should they behave and how are they called? I've done some tests and the engine does not seem to call these methods directly.

The only example i could find of the use of these methods is in the Class TfrxCustomMemo, but this class is very complicated and beyond my level of understanding. So my question is: can anyone give me some hints on how InitPart and DrawPart are (or should be) called and what their responsibilites are?

Thanks for any tip!

Gertjan (Repelsteel)

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.