Select the File -> New -> Window Layout menu command.
This will present the "New Layout" dialog that gives you a choice of which type of layout script to create. Choose the Child Layout choice. This will create a new script (with a default name), and a window for it. Like the Main Window Layout script, this new script will have some instructions in it, and begin with a comment that contains the words GUIBEGIN and GUIEND. But, the instructions will be different.
The Resources page changes to reflect the resources in this new Child Window Layout script. For example, you'll notice that we have no STRING1 resource listed. This is because that resource is in the Main Window Layout -- not this new Child Window Layout. You'll notice that we do have a Window category, and if you click on it, you'll see a (default) item beneath:
Double-click on the (default) Window item, and it will pop open this child script's window. Just like when you first created the main script, this new window is empty and has a default caption of "Window Title".
Double-click somewhere on the window or in its title bar to bring up its "WINDOW Properties" dialog, and change the window's Caption to Add a name. Click the OK button.
Now, select the Toolbox's ENTRY button and add an ENTRY control to the window. Position and size it so that the box looks like it does in the picture at the top of this page.
Double-click on this ENTRY box to bring up its "ENTRY Properties" dialog, and type NewName into the ID field. We are going to associate this REXX variable name with the ENTRY box (where the user types the new name).
Click the OK button.
Select the Toolbox's PUSH button and add a PUSH control to the window. Position and size it so that the control looks like it does in the picture at the top of this page.
Double-click on this PUSH control to bring up its "PUSH Properties" dialog, and type NameOk into the ID field. We are going to associate this REXX variable name with this PUSH control (that the user clicks after he has entered a new name).
Highlight the CLICK event in the Events list, and click on the Add event handler button. This will add a new subroutine called WM_CLICK_NameOk to be called when the user clicks on the button (ie, handles the CLICK event for this control).
Click the OK button.
We have now finished creating our Child Window Layout script.