2.364 .textwidth
The .textwidth attribute can be used to set and query the maximum text width in pixels for an edittext with formatting (RTF edittext).
.textwidth is an attribute of the RTF edittext and like the RTF mode of the edittext is only available on Microsoft Windows.
Definition
-
Data type
integer
-
Access
get, set
-
changed event
yes
If .textwidth is set to 0, the maximum text width is determined like this:
- If .hsb_visible = true the text width is determined by the widest line in the formatted text.
- If .hsb_visible = false the text is automatically wrapped and the text width will be the width of the edittext without margins.
A value > 0 sets the maximum text width to this value. If required, a horizontal scrollbar is available whose display is controlled by the attribute .hsb_visible.
See also
Chapter “Editable Text with Formatting (RTF edittext)” in the “Object Reference”