Howard I have to admit that I was looking for something simpler than a change in the source and recompile of the IDE, I would like to avoid that as long as possible. But thank you for the suggestion anyhow, it may be useful. I'll wait and see if something simpler turns up.
Tom On 25. Dec 2013, at 22:59 , Howard Page-Clark <[email protected]> wrote: > On 25/12/2013 13:20, Tom Backer Johnsen wrote: > >> I have a small problem with Lazarus on a Mac. If I use the print >> option on a source element, it is printed out, but ... > > The file to fiddle with is > lazarus\components\printers\design\sourceprinter.pas > > Perhaps a horrid hack such as changing line 101 of the PrintPage method to > > Printer.Canvas.TextOut(Margin, 50 + Round(LineHeight * l), s); > > (to increase the y offset by 50 - or some other value that suits your > printer's dpi) and recompiling Lazarus would work for you. I think that > TPrinterSetupDialog is not supported on Carbon. > However, I don't know what is actually causing the loss of your first line. > Finding the cause would lead to a more intelligent remedy than the > shot-in-the-dark suggested above. > > There are several enhancements (some suggested by the author in a txt file in > the source directory ...\printers\design\ ) that you might feel able to > contribute if you come up with worthwhile improvements to the existing code. > I'm sure patches to improve the functionality would be welcome. > > Howard > > -- > _______________________________________________ > Lazarus mailing list > [email protected] > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus Tom Backer Johnsen Email: backer(at)psych.uib.no -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
