In the previous article we saw how to call a routine from a package as well as how to dynamically load a package into the main application. In this second part of a two-part article explaining plug-ins, we are going to look at how to create a real world plug-in.
Creating an About Box Plug-in - Continuing with our example (Page 2 of 4 )
Coming back to our example, create a new application and save it. Give it whatever name you want. Drop a tmenu component (available from the Standard tab) onto the form. Double click on the tmenu and add two menu items; the first is "File" and the second "Help." Then add a submenu to "help" called "About."
Then on the Delphi toolbar, select View|Project Manager. Select "project1.exe" or whatever name you used to save the project, then select options, then the "Packages" tab. In the run-time packages section select "Built with run-time packages" and click OK.
Save everything and close the application. Your form should look something like this: