Skip to main content

OLE support with rich edit controls

  • 2 minutes to read

The TcxRichEdit control provides OLE client capability. It acts as a container for any OLE data supported by the Windows environment. As such, by means of COM interfaces, the TcxRichEdit provides a way to share data with other applications.

Object Insertion

An end-user can place an object into a rich editor via either the clipboard, or simply by dragging a file into the editor.

If the object placement is performed programmatically (by using the editor’s InsertObject or PasteSpecial method), the TcxRichEdit provides the standard dialog-based UI that allows an end-user to choose how the object will be represented in the rich editor’s container. The editor’s ShowObjectProperties method is also used for the object’s view and link customization.

If required, you can control object insertion into the editor by handling the editor’s Properties.OnQueryInsertObject event.

Data Format Types

The TcxRichEdit supports different data loading modes. The editor’s Properties.StreamModes property allows you to specify how to modify data before displaying it within the editor. These settings can be specified in combination (see the TcxRichEditStreamModes enumeration).

Automatic URL Detection

The rich text editor supports automatic URL detection. If this feature is enabled (the editor’s Properties.AutoURLDetect property is True), the editor searches for the content that matches the following URL keywords:

http:

https:

file:

ftp:

gopher:

mailto:

news:

nntp:

prospero:

telnet:

wais:

If a keyword is detected, the editor underlines the link. The editor’s Properties.OnURLClick and Properties.OnURLMove events allow a response to clicking or hot-tracking links.

See Also