Top
PowerCOBOL V11.0 User's Guide
FUJITSU Software

4.2 Creating a Form

A new form named "MainForm" is automatically created whenever you create a new project in PowerCOBOL.

If you have not done so already, start PowerCOBOL to display the Project Manager window. Select New Project from the File menu and then select the "Standard Form" project template.

This will create a simple project with a single module (Main) and a single form (MainForm).

Now expand the project's objects by right clicking on the project name in the left windowpane and selecting Expand All from the pop-up menu.

There should be no controls associated with MainForm in this new project. If you see any additional controls associated with MainForm, then you may have selected the wrong template. Delete the current project and create a new one using the proper template.

Once you have defined a project, you may create additional forms for it from within the Project Manager window.

You can do this by right clicking on the name of the application module you wish to create the form under (for example, the "Main" module), and selecting Create Form from the pop-up menu that appears.

Figure 4.1 The Create Form option in the Project Manager pop-up menu

For now, do not create a second form, as you will be working on the default form (MainForm) you just created in the new project.

Once you have created a new form (either by creating a new project or using the Create Form option from an existing project), you may change its initial properties.

To change a MainForm's initial properties, left-click the mouse on MainForm's name in the left windowpane of the Project Manager window.

The form's properties and property values will then be displayed in the right windowpane.

Left-click once on the MainForm form to display its initial properties as follows:

Figure 4.2 Displaying the initial properties of MainForm