Reorganizing controls in the form

This section describes how you can change the layout of any of the controls in a form.

Using the grid in the Form painter

The Form painter provides a grid to help you align controls.

About the grid

The Form painter grid is invisible. You cannot see it in the Layout view, but your controls can snap to the grid as you move them.

To use the grid in the Form painter:

  1. Select Design>Options from the menu bar.

  2. Use the options on the General page to:

    • Make controls snap to a grid position when you place them or move them in a form

    • Specify the size (height and width) of the grid cells

    The options are:

    Option

    Meaning

    Snap to Grid

    If selected, controls snap to the grid when you place or move them

    X

    The width of each cell in the grid in pixels

    Y

    The height of each cell in the grid in pixels


Deleting controls in the Form painter

To delete controls in the Form painter:

  1. Select the controls you want to delete.

  2. Do one of the following:

    • Click the Clear button.

    • Select Edit>Delete from the menu bar.

    • Press the Delete key.

Moving controls in the Form painter

In all form styles except Grid

In all form styles except grid, you can move all the controls (such as headings, labels, columns, and drawing controls) anywhere you want.

To move controls in the Form painter:

  1. Select the controls you want to move.

  2. Drag the controls with the mouse, or press an arrow key to move the controls in one direction.

In grid forms

If you are working in a grid style form, you can reorder columns.

To reorder columns in the Form painter:

  1. If grid lines do not show in the column heading, select Grid Lines from the column heading pop-up menu.

  2. Select a column heading.

    InfoMaker selects the column and displays a line representing the column border:

  3. Drag the column left or right.

  4. Release the mouse button to drop the column into position.

Copying and pasting controls in the Form painter

You can copy controls within a form and to other forms. All properties of the control are copied.

To copy a control in the Form painter:

  1. Select the control in the Layout view.

  2. Select Edit>Copy from the menu bar or press Ctrl+C.

    The control is copied to the clipboard.

  3. Paste the control.

    To paste the control within the same form, select Edit>Paste from the menu bar or press Ctrl+V.

    To paste the control in another form, open the Form painter again, open the desired form, and paste the control.

    InfoMaker pastes the control at the same location as in the source form. If you are pasting into the same form, you should move the pasted control so that it does not overlay the original control. InfoMaker displays a message box if the control you are pasting is not valid in the destination form.

Cutting controls

You can also select one or more controls and cut the controls by selecting Edit>Cut from the menu bar.

Resizing controls in the Form painter

You can resize a control using the mouse or the keyboard.

Using the mouse

To resize a control using the mouse, select it, then grab an edge and drag it with the mouse.

Using the keyboard

To resize a control using the keyboard, select the control and do the following:

To make the control

Press

Wider

Shift+Right Arrow

Narrower

Shift+Left Arrow

Taller

Shift+Down Arrow

Shorter

Shift+Up Arrow


In grid forms

You can resize columns in grid forms.

To resize a column in the Form painter:

  1. Position the pointer at a column boundary.

    The pointer changes shape to a two-headed arrow.

  2. Press and hold the left mouse button and drag the boundary to resize the column.

  3. Release the mouse button when the column is the correct width.

Aligning controls in the Form painter

Often you need to align several controls or make them all the same size. You can use the grid to align the controls, or have InfoMaker align them for you.

To align controls in the Form painter:

  1. Select the control whose position you want to use to align the others.

    InfoMaker displays handles around the selected control.

  2. Extend the selection by pressing and holding the Ctrl key and clicking the controls you want to align with the first one.

    All the controls have handles on them.

    Avoid lasso selection for aligning controls

    Avoid selecting controls by dragging the mouse to put a bounding box around multiple controls. You cannot control which control is used as the basis for aligning the other controls.

  3. Use the Layout drop-down toolbar in the PainterBar, or select Format>Align from the menu bar.

  4. Select the dimension along which you want to align the controls.

    For example, to align the controls along the left side, click the Align L button in the Layout drop-down toolbar or select the first choice in the cascading menu.

    InfoMaker moves all the selected controls to align with the first one.

Equalizing the space between controls in the Form painter

If you have a series of controls and the spacing is fine between two of them but the spacing is wrong for the rest, you can easily equalize the spacing around all the controls.

To equalize the space between controls in the Form painter:

  1. Select the two controls whose spacing is correct.

    To do this, click one control, then press Ctrl and click the second control.

  2. Select the other controls whose spacing you want to have the same as the first two controls by pressing Ctrl and clicking.

  3. Use the Layout drop-down toolbar in the PainterBar, or select Format>Space from the menu bar.

  4. Select the dimension whose spacing you want to equalize.

    For example, to equalize the vertical spacing of the controls, click the Space V button in the Layout drop-down toolbar or select the second choice in the cascading menu.

Equalizing the size of controls in the Form painter

Say you have several controls in a form and want their sizes to be the same. You can accomplish this manually or by using the Edit menu.

To equalize the size of controls in the Form painter:

  1. Select the control whose size is correct.

  2. Select the other controls whose size you want to match to the first control by pressing Ctrl and clicking the controls.

  3. Use the Layout drop-down toolbar in the PainterBar, or select Format>Size from the menu bar.

  4. Select the dimension whose size you want to equalize.

    For example, to equalize the width of the controls, click the Size W button in the Layout drop-down toolbar or select the first choice in the cascading menu.

Undoing changes in the Form painter

You can undo your changes to a form.

To undo changes in the Form painter:

  • Select Edit>Undo.

Sliding controls in a form

You can specify that you want to eliminate blank lines or spaces in a form by sliding columns and other controls to the left or up if there is blank space. You can use this feature to remove extra spaces between fields (such as first name and last name) when you run the form.

To use sliding columns or controls:

  1. Select Properties from the pop-up menu of the controls and then select the Position tab in the Properties view:

  2. Select the Slide options you want.

    Option

    Description

    Slide Left

    Slide the column or control to the left if there is nothing to the left. Be sure the control does not overlap the control to the left. Sliding left does not work if the controls overlap.

    Slide Up - All Above

    Slide the column or control up if there is nothing in the row above (the row above must be completely empty for the column or control to slide up).

    Slide Up - Directly Above

    Slide the column or control up if there is nothing directly above it in the row above.


    If you are sliding columns up

    Even blank columns have height, so if you want columns to slide up, you need to specify as Autosize Height all columns above that might be blank and that you want to slide other columns up through. You also specify Autosize Height on the Position property page.