Jump to content

DCL dialog box that modifies a nested dialog box...


sethtriad

Recommended Posts

Is it possible for an entry in a dialog box to dictate how many edit_box's to display on a second, nested box?

 

My first dialog box has radio buttons to choose a customer, an edit_box to enter a "site code", and an edit_box to enter how many lanes the site has.

 

If I enter "4" in the second edit_box, for the number of lanes, then press next, is it possible to have the second dialog box show 4 edit_box's, one for each lane, then, using the same code, create a new project, open the dialog box, enter 8 for the number of lanes, and have the new dialog box display 8 edit_box's.

Link to comment
Share on other sites

There are two ways to accomplish this:

 

  • create the second definition at run-time; that it write its code into a temporary file and load it from there. Please check this previous disscusion for some examples.
  • create the dialog with 8 items and disable the ones that were not currently in use (see TILE_MODE function).

Link to comment
Share on other sites

Does your sites have some sort of "maximum" amount of lanes? If not you might have to look at doing it a bit differently:

 

  1. Use a listbox in the 2nd dialog to select each lane in turn, then have an edit box where you can update the currently selected lane. OR
  2. Go to OpenDCL and use its grid layout to allow for something looking similar to the properties palette which can grow by simply calling an "add row" function.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...