Menu
   ▶ Features  
   Read: Licensing  

TPack: Features

TPack Class Library

More than just reusable components

Most programmers would agree that writing reusable code is a major objective on any project. This is true in terms of sharing code among programmers on the same project, as well as sharing code among multiple projects done by the same programmer.

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.

Controlling form startup

The Application base form respects all windows startup options including the SW_HIDE option. Through the commandline you can control if you want the form to start minimized (/Min or /Minimized) or if you want the form to be hidden on startup (/Hide).

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


Order tPack Class Library
Running: WebHub-v3.287 compiled with d29_win64 on Microsoft-IIS/10.0,
Fri, 29 Mar 2024 08:28:21 UTC
Session 1765706385, 0 pages sent to claudebot at 35.153.134.169;
Time to produce this page: 0msec.