Hi all, I'm trying to create a package to that contains a unit which defines a TShape descendant component following this example:
http://wiki.lazarus.freepascal.org/Lazarus_Packages#Adding_existing_components_to_a_Package The problem that I'm having is that package overwrites the .pas file that I include with: { This file was automatically created by Lazarus. Do not edit! This source is only used to compile and install the package. } unit pos_button; interface uses pos_button, LazarusPackageIntf; implementation procedure Register; begin RegisterUnit( 'pos_button',@pos_button.Register) ; end; initialization RegisterPackage( 'pos_button',@Register) ; end. Before trying to save/compile the package this source file contains the source for the component. After save/compile the contents are replaced with the above source. -- Warm Regards, Lee _______________________________________________ Lazarus mailing list [email protected] http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
