Frame and View Properties

Bringing up the properties dialog box with no objects selected allows the view and frame properties to be set.
Table 1. View Properties

View Properties

Description

(FormCode)

Form code. If entered, allows a form to be accessed by this handle using the FormFind() method.

Color

Background color of the view

CursorPointer

Cursor pointer displayed while mouse pointer is over object

Font

Default font for the view. If an object's font property is cleared, this font is used.

HelpContextID

Help context ID used if the frame object's WhatsThisHelp property is set to Yes

PrintScale

Default = 1.0. Changes the scaling of the view when printed.

ScrollBars

Make view scrollable.

ScrollHeight

View scroll size, bottom (scroll height).

ScrollWidth

View scroll size, right (scroll width).

Tag

(VARIANT) Stores user defined data.

ToolTipText

Tooltip text displayed while mouse pointer is over object.

ViewLayers

Definition of layers (there is one layer named Default by default).

Table 2. Frame Properties

Frame Properties

Description

BorderStyle

Frame border style: "thin" or "resizing". If this property is set to "thin" the window cannot be resized in run mode.

Height

Height of frame.

MaximizeBox

Frame style: display window Maximize button on Title bar.

MinimizeBox

Frame style: display window Minimize button on Title bar.

Title

Frame title.

WhatsThisHelp

Puts the frame into "What's This Help" context sensitive help mode. The HelpContextID's defined in the Objects are used.

Width

Width of frame.

Tip

A color of "Nil" represents the default Windows color. So, for example, setting a Button Object's BackColor to "Nil" implies COLOR_BTNFACE and setting ForeColor to "Nil" implies COLOR_BTNTEXT.

Tip

A font with height 0 (nil) implies that the font should be adopted from the view object