sethtriad Posted February 27, 2013 Share Posted February 27, 2013 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. Quote Link to comment Share on other sites More sharing options...
MSasu Posted February 27, 2013 Share Posted February 27, 2013 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). Quote Link to comment Share on other sites More sharing options...
irneb Posted February 28, 2013 Share Posted February 28, 2013 Does your sites have some sort of "maximum" amount of lanes? If not you might have to look at doing it a bit differently: 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 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.