Most controls have many properties you can change, and most of them modify how the control operates, and/or modify its appearance. Different kinds of controls may have different properties. But all controls have one setting in common -- the ID setting. If you want to be able to handle "events" (which happen when the user operates the control), or if you wish to modify/remove the control after it appears in your window, then you must supply a REXX variable name that you would like associated with that control. This is its "ID". You can choose any legal REXX variable name as you wish, including a compound variable name, and type this into the ID field. Each control must have a different REXX variable name.
Note: Two controls that are in different window layout scripts may use the same REXX variable name. It will not actually be the same variable, since each window layout script uses its own REXX Object.
Note: For a RADIO button control, only the first control in the group needs a REXX variable name associated with it. The remaining RADIOs in the same group do not need a variable, but each may be given one for convenience.
For our "List of Names" window, let's choose a REXX variable name of NameAdd to associate with our "Add" PUSH control. Double-click on the "Add" control in your window. This brings up the "PUSH Properties" window. Into the box labeled ID, type NameAdd.
Click on the OK button to close the PUSH Properties dialog. You should now see the status bar change to display this new ID (REXX variable name), along with its dimensions.
Now double-click on the "Delete" button. Let's choose a REXX variable of NameDelete to associate with it. Type that into the ID field, and click on OK.
Double-click on the list control, and type a REXX variable name of NameList into the ID field.
We do not need to ever modify the "Names:" text control, nor receive any feedback from it, so we do not need to associate a REXX variable name with it (although you can). So we will leave its ID field blank.
We have now finished assigning REXX variable names to our controls in the "List of Names" window.