company logo

ControlContext :: insertHTMLText - Insert formatted text

The function inserts the text passed in sText at the current position (usually the cursor position) in the control data area. In order to insert the text at a different position, the text position property ( textPosition() ) might be changed before.

In order to insert formatted text one may use InsertHTMLText (), which may include additional HTML tags in case of rich text data.

{ // fragment

  ...

  SetPosition(pos);

  InsertHTMLText(data);

  ...

}

Implementation details

ControlContext  :: insertHTMLText ( odaba::String &sText )
  • sText - Text string