Unit DelphiWizard

*************************************************************** TDelphiWizard v1.2 (C) 1998 Marc Nieuwhof, MNIWare (C) 1998 John Tait-Doak,johntait@iol.ie (see readme.v12) // // Description: // TDelphiWizard is a simple component that enables you to create Wizards like the 'Add new hardware' wizard. It only needs a TNotebook (On the Win31 tab) that it will control with a Back, Next, Finish and Help button. TDelphiWizard will let you enter the captions of the buttons so that you can use them in your own language. It also has 5 events for more user interaction. // This component is totally FREEware and I encourage you to add/modify some things for you own needs. If you redistribute your modified version I would like to have it to see what you've done! // Send mail to: m.nieuwhof@hs-ipabo.edu or alfons@xs4all.nl // *************************************************************** // Properties: // BackCaption: Caption of the Back button Defaults to: < Back // NextCaption: Caption of the Next button Defaults to: Next > // AbortCaption: Caption of the End button Defaults to: Cancel // ReadyCaption: Caption of the End button when TDelphiWizard is at the last page Defaults to: Finish // HelpCaption: Caption of the Help button Defaults to: Help // Notebook: A TNoteBook (Win31 tab) // Ready: Readonly... True when ready! // EnableHelp: Enables/Disables the Help button // Events: // OnBackClick: Triggered when clicked on the Back button OnNextClick: Triggered when clicked on the Next button OnEndClick: Triggered when clicked on the End button OnHelpClick: Triggered when clicked on the Help button OnPageChange: Triggered when a paged was changed // Usage: // Drop TDelphiWizard on your form. It will autoalign to the bottom of your form. Drop a TNotebook component on your form and set the align property to alClient. Add pages and components to the TNotebook and assign it to the NoteBook property of TDelphiWizard. Run the project!! // Additional notes: // If you assigned a TNotebook without pages, one page or no TNotebook at all, the Back and Next button will be disabled! // *************************************************************** // // //

Classes

TDelphiWizard -

Functions

Register - Register the component //

Types

TPageChangingEvent
TWizDirection

Constants

Variables


Functions


procedure Register;

Register the component //

Types


TPageChangingEvent = procedure(Direction: TWizDirection; var ShowPage: integer) of object

TWizDirection = (wzdNext, wzdBack);

Constants


Variables