CTextView:SetWordwrap
The SetWordwrap method activates word wrapping for the CTextView.
CTextView:SetWordwrap( bWrap=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 fragment 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 |