Sfairadora

  • Reference Guide

Rich_cformat_info

Information about the current character format. For quick manipulation with the format, the attributes style and char_attr are designed.
Type
Name
Description
Bool
lock_cformat
If set TRUE, the character format information contained within this object is not updated as the cursor moves through the text. The character newly typed will receive the character format specified in the structure.
default_cformat
The character format used to determine the format attributes not specified otherwise.
The editor sets this item and the tools should not change it.
cformat
The character format of the character at which the cursor is located. The format is also set to newly typed characters. If several characters with different formatting are marked, this item contains only the format attributes common to all of them.
org_cformat
The format read from the character at which the cursor is located. If the item cformat is not changed by a tool, it contains the same value as this item. This item is used to determine the changes made by a tool to the format.
The editor sets this item. Tools should not change it.
Bool
additive
Set TRUE, if the difference between the items cformat and org_cformat is additive – i.e. if the format cformat can be obtained from org_cformat by adding attributes (see the operator | (character format merge)).
cformat_def
The same value as stored in the item cformat, but unfolded as the character format definition type.
String
style
The character style currently applied. The item serves to display and change the style directly.
The value is synchronized with the value of the items cformat and cformat_def.
char_attr
The current attributes of the character format merged with the attributes from default_cformat.
The value is synchronized with the value of the items cformat and cformat_def.