Form Properties

Property

Description

Title

Text to be displayed in the title bar.

Form ID

Unique resource ID number that must be an integer between 1 and 32767. Each form in a resource must have a unique ID. Forms and controls can have the same ID, but this is not recommended.

Name

Sets the name of the form.

x Position

Sets the horizontal position of the left edge of the form.

y Position

For BBj specific information, see BBj ResBuilder Form Properties .

Sets the vertical position of the top edge of the form. This coordinate does not take into account the space taken by menus or title bars. If a form has a menu and a title bar and its y position is set to zero, the menu and title bar will not be visible when a VPRO/5 program displays the form. The y position should be adjusted by 20 pixels to account for a menu and 20 pixels for a title bar. For example, if a form has a menu and a title bar and the y position is set to 60, the top of the title bar will appear 20 pixels from the top of the screen when a VPRO/5 program displays the form.

Width

Window width.

Height

Window height.

Fore color

Window foreground color.

Back color

Window background color.

Default font

Form default font.

Current units

Current units for the form and its contained resources. The options are pixels, chars, or semichars.

Flags

Click here to display window flag descriptions.

Event mask

Click here to display window event mask descriptions.

Menu Status

Select None if the window will not have a menu bar.

Select User if the window is to have a menu bar, then enter the menu ID into the Menu ID field.

Select Default for compatibility with earlier versions of Visual PRO/5. Creates a menu bar that is identical to the one created with the 'WINDOW' mnemonic's menu bar flag ($00000800$).

Menu ID

ID of the menu bar to be attached to the window. (Enabled when the Menu Status field is set to User.)

Has status bar

Identifies that the window has a status bar.

Icon

File name and path for .ico file that is to be placed to the left of the title bar text. (The icon only appears when the program is run in Visual PRO/5; it does not appear in ResBuilder.)