component for printing header
Posted on 2005-03-14
I am trying to create a procedure for printing headers above RichEdit text. Found out I could use the code of TCustomRichEdit.Print (overload) in a component based on TRichEdit and add a call to a function that prints the header above the PageRect that RichEdit1 in my unit uses on the Canvas.
When I use this call: ...
... then the original TCustomRichEdit.Print method is called from unit ComCtrls and not the adapted copy in the newly installed and used component in my unit.
I cannot understand why the component based on TRichEdit is bypassed toward its ancestor TCustomRichEdit when the code from the latter is copied and changed in (to) the component.
Hopefully the question is stated clear enough.
Help much appreciated!!