Also with wizards
I forgot to mention this last time. What would be the proper way to write wizards: Separate forms and a controller class (I've done this before in VB) or one form with a PageControl (I'm trying this right now but haven't been able to write validation code -- OnChanging only executes when the user clicks a tab).
Julio César Carrascal Urquijo
We use TPageControl for wizards. You can place your validation code in the NextButton.OnClick event or in the OnChanging event of the TPageControl.
The Delphi Fan
I use a pagecontrol with hidden tabs and do the validation checks when the Previous/Next buttons are clicked. That way you don't need the pagecontrol onchange events.
Depending on the complexity of the wizard and how many developers are on the project, I use:
A better component for this job is TNotebook. This is hidden away in the "Win3.1" tab, but there's nothing wrong with it. It has *no* graphical elements at all and therefore is simpler.
Fog Creek Home