3.6. Change the Size of an Item

Dialog boxes and controls can be resized either by directly manipulating them with the mouse or by using the Information dialog box. Certain controls can also be resized automatically to fit the text displayed on them.

Resize an item with the mouse.

Resize an item with the Information dialog box.

Resize selected controls automatically.

Resize an Item with the Mouse

  1. Click the Select button on the Dialog Editor toolbar.

  2. Place the cursor over a border or corner of  the dialog box or a control..

  3. Hold the the left-mouse button down and drag the border or corner until the dialog box or control reaches the desired size.

Resize an Item with the Information Dialog Box

  1. Open the Information dialog box for the dialog box or a selected control.

  2. Change the Width and Height settings in the Size group box.

  3. Click OK or press Enter on the keyboard.

Resize Selected Items Automatically

The following controls can be resized automatically.

Option button

Text control

Push button

Check box

Text box

  1. Click the Select button on the Dialog Editor toolbar.

  2. Select the control to be resized.

  3. Press F2 on the keyboard..

Result: The borders of the control will expand or contract to fit the text displayed on it.

Notes

Picture controls and picture button controls must be resized manually.

Windows metafiles always expand or contract proportionally to fit within the picture control or picture button control containing them.

Windows bitmaps are of a fixed size.

If you place a bitmap in a control that is:

Smaller than the bitmap, the bitmap is clipped off on the right and bottom.

Larger than the bitmap, the bitmap is centered within the borders of the control.

More information

3. Edit a custom dialog box.