Top
PowerCOBOL V11.0 User's Guide
FUJITSU Software

4.6.5 Aligning and Sizing Groups of Controls

When you create a new project and open a new form in form editing mode, the form's background does not contain a grid.

You can, however, view a grid during form editing to assist in aligning controls. You can turn on the grid by selecting Grid from the Tools menu. A dialog box appears and allows you to enter a grid size and to turn on display of the grid.

A value of 10 points in both the Width and Height fields is typically a good choice. The dialog box should thus look something like the following:

Figure 4.7 The Grid options dialog box

When the Display Grid feature is checked, it is easier to manually align controls to the grid. When using the automatic alignment tools, it does not matter whether the grid is turned on or not.

To do this, click the Align to Grid Icon , or simply right-click once on any control and select Align to Grid from the pop-up menu.

Additionally, the PowerCOBOL Form Editor provides several powerful functions for aligning controls. Several of these functions are provided to work on groups of controls.

These functions are available from the Layout Menu or as icons directly on the Form Editor tool bar.

These include the following functions that work on single or groups of controls:

Additionally, the following functions work only on groups of controls. Note that alignment is always relative to the one selected control in the group (surrounded by a blue border). White borders will surround the other controls in a selected group. You may change the relative control (blue bordered control) by simply left clicking on another control in the group).