Freigeben über


ScrollBars Property

Specifies the type of scroll bars an edit box, form, or grid has. Read/write at design time; read-only at run time.

 [Form.]Control.ScrollBars[= nType]

Property Values

  • nType
    For an edit box, the settings are:

    Setting Description
    0 None
    2 (Default) Vertical

    For a form, the ScrollBars property settings are:

    Setting Description
    0 (Default) None
    1 Horizontal
    2 Vertical
    3 Both vertical and horizontal

    For a grid, the ScrollBars property settings are:

    Setting Description
    0 None
    1 Horizontal
    2 Vertical
    3 (Default) Both vertical and horizontal

Remarks

If enabled, the scroll bars are displayed automatically when the form, grid, or edit box contains more information than can be displayed in the space provided. The Scrollbars property setting is evaluated for a form when the form is instantiated.

If you want to control scrollbar size at run time, specify a non-zero value for nType.

Note   Values of nType greater than 0, require more memory in order to accommodate the possible use of the SAVEAS( ) function. To save memory specify nType =0.

The Scrollbars property is ignored for _SCREEN.

See Also

ContinuousScroll Property | DoScroll Method | Scrolled Event

Applies To: EditBox | Form | Grid