Form Wizards

Yet another type of wizard supported by the Open Tools API is the form wizard. Once installed, form wizards are accessed from the New Items dialog box; they generate new forms and units for the user. Chapter 16, “Windows Shell Programming,” employs this type of wizard to generate new AppBar forms; however, you didn't get to see the code that made the wizard tick.

Creating a form wizard is fairly straightforward, although there a good number of interface methods that you must implement. Creation of a form wizard can be boiled down to five basic steps:

1.
Create a class that descends from TCustomForm, TDataModule, or any TWinControl that will be used as the base form class. This class will typically reside in a separate unit from ...

Get Borland® Delphi™ 6 Developer's Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.