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

Reply via email to