In this step you create a dialog, then copy and paste the code from the Settings view into it, and make some small changes to the code.
1. In the File menu, choose New -> Dialog.
2. Specify the details for the dialog and click Create.
3. Next locate a web page with a Settings view (all automatically generated applications have it).
4. Open the Settings view and copy all the code from it except for the Begin_Com and End_Com statements.
5. Paste the code in the dialog inside the Begin_Com and End_Com statements.
6. Switch to the Design view and double-click the dialog to display its properties in the Details tab.
7. Select the AutoClose property so that the dialog is closed when it loses focus.
8. Specify #LayoutMain as the LayoutManager, and make the dialog's Width 400.
9. Compile the Settings dialog.