Re: Create objects using dynamic class names



Boefje wrote:

I am trying to make a Wizard form. The idea is to build it in such a
way it will be easy to use it in my other projects. It must be as
general as possible, but without overdoing it.

So I have got a form. This form has got two buttons, a 'previous'
button and a 'next' button. I would like to 'say' to the form that I
would like to use 6 steps. The form constructs the 6 frames which all
have a comon ancestor. (This ancestor has properties like StepNumber
and GoBackAllowed).

IMO the form should do nothing but send the button clicks to the application specific code (or component...), that in turn will construct the frame, as specified for the actual wizard.

For best flexibility I'd put the frames, or the procedures to create the frames, into an array, initialized before the user can click on an button. Then the main form must know nothing about the frames, it only has to know about the number of frames (array size), and the current frame number (for counting up/down on a button click).

DoDi
.