@Steve_Cornford
Hi Steve,
Sorry about last night's mess-up.
Current WIP: I'm in a bit of a pickle here, with half a dozen units containing half-finished changes.
I can't test the map tiles until I have got the picture shapes working. I can't do that until I have sorted out EMF metafiles.
Ever since I first set eyes on Lazarus I've known that the elephant in the room would be EMF metafiles. They are everywhere in Templot, but not supported in Lazarus (presumably because they are Windows-only). It was one reason for looking at the Delphi Community Edition.
For example they provide the page previews in the print_unit. They are integral to the sketchboard. They are supported in the picture shapes as a vector-based alternative to fuzzy bitmaps. They are integral to the PDF export.
I found some code on the Lazarus GitHub site which claimed to implement metafiles, but it's not working, and seems to have been abandoned. There is a partial metafile implementation in the HTMLViewer package (TMetafilePrinter), but that's not working properly in Lazarus either.
Fortunately I have managed to get metafiles working for the PDF export. The only solution is to go all through Templot and replace the metafiles with the same solution. That's a lot of work.
Also not working is the option to drag and drop files into Templot. That also needs to be fixed or removed.
All of which means current WIP: pad_unit, bgnd_unit, keep_select, bgkeeps_unit, help_sheet, export_unit, print_unit, pdf_units, map_loader_unit, control_room
Fortunately metafiles are not needed for plug track or normal track planning.
I will post again when I have got something working -- or decided what to do instead.
cheers,
Martin.