On 07/01/18 14:35, Ondrej Pokorny via Lazarus wrote:
On 07.01.2018 20:29, Vojtěch Čihák via Lazarus wrote:

Hi,

click Package->New Package...

it immediately opens Save dialog, where you choose filname. It saves xyz.lpk

Then click Compile and xyz.pas is autogenerated.


:D

The question was: it saves xyz.lpk, where can I define that abc.pas is autogenerated/used for xyz.lpk instead of xyz.pas?

I think, add a unit, select it in the list, right click it, and in "file type" make it the "main unit"

Maybe there is an easier way

SynEditDsgn has this

the auto generated unit is allsyneditdsgn.pas

and the unit with registration is "syneditlazdsgn.pas" (see checkbox at the bottom of package dialog.
So this as afaik why the unit will be called from the autogenerated unit.

-- 
_______________________________________________
Lazarus mailing list
[email protected]
https://lists.lazarus-ide.org/listinfo/lazarus

Reply via email to