ScrollBars Property (AForm)

Returns whether the form has horizontal or vertical scroll bars.

Syntax

 [ bScrollBars = ] Object.ScrollBars

The ScrollBars property syntax has the following parts:

 

Name

Type

Description

Object

AForm

AForm object

bScrollBars

Bool

A boolean expression that specifies whether the form has horizontal or vertical scroll bars.

Where

bScrollBars can be one of the following:

 

Value

Description

True *

The form has a horizontal or vertical scroll bar, or both.

False

The form has no scroll bars.

Comments

Scroll bars are displayed on an object only if its contents extend beyond the object's borders. For example, in an MDIForm object, if part of a child form is hidden behind the border of the parent MDI form, a horizontal scroll bar (HScrollBar control) is displayed. If ScrollBars is set to False, the object won't have scroll bars, regardless of its contents.

The property is read only at run time and is applicable only to MDI Form.

Example

The following statement retrieves whether the AForm will display scroll bars:

bFrm1ScrollBars = ScrollBars

Applies to

AForm

See Also

MDIActiveForm