CTextView:SetWordwrap
The SetWordwrap method activates word wrapping for the CTextView.
CTextView:SetWordwrap( bWrap=true ) |
bWrap is a true to activate word wrapping. If omitted, it is true.
With word wrapping enabled, the Text Editor breaks lines at the right margin of the viewable area of the window. Wrapping affects the way the text is displayed but does not change the actual text data.
When a CTextView is created, word wrapping is activated by default. Use this method to change the word wrapping state at any time.
The following script shows opening a CTextView T and disables word wrapping before wring text to the window:
|
-- create a new instance T of the CTextView |
|
-- disable word wrapping |
|
-- write something to the window |
|
|
|
-- when done with the object, delete it |
Mira Pro x64 Script User's Guide, v.8.73 Copyright Ⓒ 2024
Mirametrics, Inc. All Rights Reserved.