LabelItem Version 1.14.1

  Label Item - item class for RichView.
  Non-text item that looks like a text (but cannot be wrapped and edited)
  Does not support Unicode.

ComboItem Version 1.1

  Combo Item - item class for RichView.
  It's an label item that displays combo-box when focused: clicked or activated by Tab key.
  It can show combobox only in TRichView, not in TRichViewEdit (because items in TRichViewEdit
  cannot be focused).

{----------------------------------- LABELITEM ---------------------------------}

Main properties:
Text: String - text to display (standard item text is not used, as in all non-text items)
TextStyleNo: Integer - text style (index in the collection TextStyles of TRVStyle)
  (do not confuse with StyleNo - StyleNo must be equal to rvsLabel for this item)
ProtectTextStyleNo: Boolean - if set to True, ApplyTextStyle and ApplyStyleConversion do not change TextStyleNo.
MinWidth: Integer - minimal width of item
Alignment: TAlignment - text alignment, works if MinWidth>text width

Constructor:
constructor CreateEx(RVData: TPersistent; TextStyleNo: Integer; const Text: String);

How to use:

uses LabelItem;

...

var li: TRVLabelItemInfo;
begin
  li:= TRVLabelItemInfo.CreateEx(RichViewEdit1.RVData, 0, 'label text');
  RichViewEdit1.InsertItem('', li);
end;

History

  v1.14.1
  compatibility with RV 1.9.6
  v1.14
  minor fix
  v1.13
  compatibility with RV 1.8.21
  v1.12
  compatibility with RV 1.8.20
  impr: saving to HTML and RTF with fonts
  v1.11
  fix: correct duplicating by AppendFrom
  new: Cursor property
  v1.10
  fix: printing with colored background
  v1.9
  fix: item name was not saved in RVF
  v1.8
  fix: printing
  v1.7
  compatibility with RV 1.7.6
  new properties:
    MinWidth: Integer - minimal width of item
    Alignment: TAlignment - text alignment, works if MinWidth>text width
  v1.6:
  compatibility with RV 1.7.4; ColorMode support
  v1.5:
  impr: hypertext support
  v1.4:
  fix: correct copying by AppendFrom
  v1.3:
  fix: printing
  v1.2:
  impr: correct working with DeleteUnusedStyles
  impr: ApplyText and ApplyStyleConversion affect this item
    (if ProtectTextStyleNo=False)
  impr: can be saved in text, RTF, HTML (in RTF and HTML, it is saved as a
    plain text, i.e. it has style of the preceding text)

{----------------------------------- COMBOITEM ---------------------------------}

This item has all properties of LabelItem.
It cannot resize itself when new text is chosen from the combobox, so you should
assign MinWidth to value large enough to show the whole text.

Properties:
property Items: TStrings

History

 v1.1
 Saving items in RVF