## The `selstyle' property

5-element boolean (or integer) vector

Valid for: RichEdit

The `selstyle` property contains the style of the currently-selected text as a 5-element vector: bold, italic, underline, strikeout, and protected. For each element, you can write: 1 = Set, 0 = Clear, ¯1 = Leave unchanged

Note that the 'protected' attribute means that the text cannot be changed, even under program control. Thus, if you want to use this attribute, you must write out the text first, then select the part you want to protect, and then set this attribute. The 'protected' attribute is ignored under MacOS and Linux. If you want to make the whole of the text read-only, use the `style` property.

Topic: APLX Help : System Classes : Properties : selstyle

[ Previous | Next | Contents | Index ]