WORDWRAP Property


PLBCMP GUI Only

 

The WORDWRAP property enables the word wrap feature. The property uses the following format:

WORDWRAP[={value}]

Note the following:

  1. WORDWRAP may be used in CREATE or GETPROP statements of an EDITTEXT, RICHEDITTEXT, or LABELTEXT object.

  2. A vertical scroll bar is created for the object.

  3. Data entry for EDITTEXT objects resume at the beginning of the next line when the right most boundary of the EDITTEXT object is encountered.

  4. If the WORDWRAP property is specified without an assignment, the action is the same as if WORDWRAP=1 were given.

  5. An EDITTEXT must have the MULTILINE and MAXCOLS property set for WORDWRAP to function. In the designer, this is controlled with the MAXLINES setting. The designer cannot set the MAXCOLS property.

  6. When MULTILINE and MAXCOLS properties are set in an EDITTEXT, the WORDWRAP property controls whether the text wraps at the end of the line. When set to $OFF, continuing to type past the MAXCOLS position will beep until the user hits the enter key. At that point, the cursor moves to the next line so the user can continue typing. When the property is set to $ON, the current word is automatically wrapped to the next line.

  7. To completely disable the WORDWRAP functionality in an EDITTEXT, enable the horizontal scroll bar. In this case, text will scroll off the sides instead of wrapping to the next line.

  8. {value} is a decimal number, a Numeric Variable, an Expression, or a keyword as defined in PLBEQU.INC. The supported values and keywords are:

  9.  

    Value

    Keyword

    Word wrap is ...

    0

    $OFF

    disabled. (default)

    1

    $ON

    enabled.

 

See Also: Object Properties, Object IO Instructions, Object Definitions

 



PL/B Language Reference WINWIDTH Property WRAPPABLE Property