Using Intel® Visual Fortran to Create and Build Windows*-Based Applications

ID 757211
Date 7/23/2021
Public
Document Table of Contents

Setting Control Properties

In addition to changing the properties of its individual controls, you can change the properties of the dialog box itself. To change the dialog box properties, select the dialog box and then right-click and select Properties from the pop-up menu in any clear area in the box. The Properties window opens for the dialog.

To specify the location of your dialog box on the screen, do one of the following:

  • In the Properties window (in the Position category), you can change the X Pos and Y Pos values. These specify the pixel position of the dialog box's upper-left corner, relative to its parent window. For a modal or a popup modeless dialog box, the parent window is the screen. For example, specifying the X position as 40 and Y position as 40 would place a modal dialog box in the upper-left corner of the screen.

  • You can also center the dialog box by setting the Center option to True in the Position category. This displays the dialog box in the center of its parent window. If you set the Center Mouse option to True in the Misc category, the dialog is centered at the current mouse pointer position.

To change the size of the dialog box, hold down the left mouse button as you drag the right or lower perimeter of the box. If you have sized your dialog window to be larger than the edit window, use the scroll bars to move the view region.

Help is available at the bottom of the Properties window to explain the options for each of the dialog controls.

You can edit the appearance of the dialog box later. For more information, see Designing a Dialog Box Overview.