WordWrap

Applies to

RichTextEdit controls

Description

When WordWrap is enabled, text wraps automatically to the next line when it reaches the right margin of the RichTextEdit control. If WordWrap is not enabled, the horizontal scroll bar appears, if it is enabled, when text reaches the right margin and text continues beyond margin.

WordWrap can also be enabled by the user at runtime from the properties item on the pop-up menu, if the PopMenu property is enabled.

Usage


In a painter

StepsTo enable word wrap:

  1. Select the WordWrap check box on the Document tab page of the control’s Properties view.


In scripts

The WordWrap property takes a boolean value.

The following line enables word wrapping for a RichTextEdit control.

rte_1.WordWrap = TRUE