On Sun, 7 Jan 2018 20:08:31 +0700 Ondrej Pokorny via Lazarus <[email protected]> wrote:
>[...] > >> The package unit can have a different name as the package. See > >> for example synedit. > > > > I didn't know this, and this is good to know ! > > I didn't know this either. Where can the pas file name be changed? I > can't find any entry in the Package Options dialog. Right click on an unit in the package editor and set File Type to "Main Unit". That is then the auto generated unit. Here is how to create a new package with this: http://wiki.freepascal.org/Lazarus_Packages#Create_a_package_with_a_unit_that_has_the_same_name_as_the_package If you often need to create packages a custom main unit name, feel free to create a new package type or an initial setup dialog. Mattias -- _______________________________________________ Lazarus mailing list [email protected] https://lists.lazarus-ide.org/listinfo/lazarus
