ScrollBars Property

See AlsoBFR1E5

Applies To

MDI form1ILMZQ7, grid2VGT0PT, text boxYPYZDG.

Description

Specifies whether an object has horizontal or vertical scroll bars; read-only at run time.

Usage

mdiform|grid|textbox}.ScrollBars

Setting

For an MDI form, the ScrollBars property settings are:

Setting          Description

 

True              (Default) The form has a horizontal or vertical scroll bar, or both.

False             The form has no scroll bars.

 

For a grid and text box, the ScrollBars property settings are:

Setting          Description

 

0                   (Default) None

1                   Horizontal

2                   Vertical

3                   Both

 

Remarks

For a text box with settings 1 (Horizontal), 2 (Vertical), or 3 (Both), you must set the MultiLineCTJIN8 property to True.

At run time, the Windows environment automatically implements a standard keyboard interface to allow navigation in text box controls with the arrow keys, the Home and End keys, and so on.

Scroll bars appear on an object only if its contents extend beyond the object's borders.  For example, in an MDI form, if part of a child form is hidden behind the border of the parent MDI form, a horizontal scroll bar appears.  Similarly, a vertical scroll bar appears on a grid control when it can't display all of its rows; a vertical scroll bar appears on a text box when it can't display all of its lines of text.  If ScrollBars is set to False, the object will not have scroll bars, regardless of its contents.

If no horizontal scroll bar is specified for a text box and MultiLine is True, the text will automatically wrap even if the WordWrap221E0F9 property is False.

Data Type

IntegerDOKXHY (Enumerated or Boolean)


See Also

Help:

MultiLine PropertyCTJIN8

WordWrap Property221E0F9

 

Programmer's Guide:

Chapter 3, "Creating and Using Controls"