Contents - Index - Previous - Next


ScrollBars property




Declaration
property ScrollBars: Boolean;

Description

Indicates whether the control's window should display scrollbars. If True, scrollbars are displayed. If False, they are not.

If the property is True, the control's window initially displays a vertical scrollbar, even if no document is loaded. After a document is loaded, if the text in the window exceeds the height of the window, the scrollbar displays a slider to allow scrolling. A horizontal scrollbar is displayed only if you load a document in which the text exceeds the width of the control's window.

Note:  In Edit mode, text typed into the control wraps at the edge of the control's window.

Note:  If the document being viewed has its SCROLL attribute set to NO (in the <BODY> tag), this setting will override the Scrollbars property and no scrollbars will appear for the control. However, the value of the Scrollbars property is unchanged, and when a new document is viewed without the SCROLL attribute set, the scrollbars will once again appear.