WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Dialog Editor version 6.X
plus
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Dynamic Dialogs - Creating Controls On The Fly


Question:

Is it possible to create new dialogue controls and display them AFTER the dialogue initialization has taken place ?

My app displays a dialog with 36 controls. The user selects a value from a drop down list and the dynamic dialogue processing then creates some more edit box controls which need to be displayed.I presume that the dialogue needs to be re-initialised before the dynamic dialogue routines 'know about' these new controls- is this the case ? Is there anyway of achieving this functionality without moving the drop down into a different dialogue.

Answer:

You must create all your controls when opening the dialog. You can then inactivate some or make them visible/invisible. For the user, it seems as they are created on the fly, but they just become visible when they are needed.
Article ID:   W16407
File Created: 2005:02:18:12:20:26
Last Updated: 2005:02:18:12:20:26