Delphi offers a number of ways to write, save and retrieve reusable code: components, the object repository, visual form inheritance, DLLs and "plain old shared units."
Part of TPack addresses the need to write something bigger than a component that is reused conveniently. The approach in tPack involves forms containing panels that follow a simple naming convention. These panels will "snap into the UI" at run time, based on the order in which they are created. This functionality is used through WebHub.
The Tray level which introduces the support for a tray icon respects the /Tray and /NoTray switches.
[? Enabled property of TtpTrayIcon]
[? RestoreOnLoad property of TtpTrayIcon]
The /Hide switch overrides the /Tray switch and the TrayIcon.Enabled property. e.g. if /Hide is supplied to the exe it will simply be invisible for as long as it is not explicitly restored.
The ucOnce unit offers /Quit functionality. From the command line, call your EXE a second time with /Quit, and the first instance will shut down.
"The tPack units ucString, IniFileLink and ucLogFil find their way into every application. ... I haven't even had time to discover it all yet!"
-- Peter Hyde, Director of Development, WebCentre Ltd., Christchurch, New Zealand