This will present the "New Layout" dialog that gives you a choice of which type of layout script to create. You'll see the following choices:
Option Meaning Empty Layout Creates a script that contains only an empty GUIBLOCK. If you intend to design your own format for how your window object script is written, select this option. You will need to write all of your own instructions. Other options below create more "ready-to-run" skeleton scripts. Main Layout Creates a main script with a window. This will be the script that the user runs to start your application, and its window will be your main application window that presents your initial user interface. Child Layout Creates a child script with a window. This child script, and its window, will be presented by some other "parent" script (typically your main script).
Initially, the "Child Layout" is selected (since most of the scripts you create will likely use this option). But you can click on a different option, if desired.
For the purposes of demonstration, we'll create our "List of Names" window layout first. Because this window is going to be the main window that our application presents when the user runs our application, choose the "Main Layout" option, and then click the "OK" button.
The "New Layout" dialog will disappear, and a new editor window will open containing several instructions and comments. This is a barebones main window layout script. At the top of the script, you'll see the following:
/* GUIBEGIN WINDOW ,0,0,400,200, POPUP|CAPTION|SYSMENU|THICK|MINBOX|MAXBOX, , My Window FONT 8, 400, MS Shell Dlg DEND GUIEND */You'll notice that this is simply a REXX comment with some lines inside it, sandwiched between the two words GUIBEGIN and GUIEND. This comment must appear at the start of a Window Layout script. Do not remove, nor edit, this comment. Later, the Resource Editor will fill in this comment with necessary information about your window, menus, and other resources you add to this script.
You'll also notice that the Project Window flips to the "Resources" page, and something new appears on this page, as so:
The above is showing you that a new window has been created. If you move the mouse pointer over the word "Window" and double-click the left mouse button, you'll see the following:
Note: If you chose the "Empty Layout" option, then no window has been added to the script yet. You can add an actual window to the script by selecting REXX Programmer Center's Resources -> Window menu command.Note: You can access the Resources page at any time by clicking on the small tab labeled "Resources" at the bottom of the Project Window as so: