Hypertext, Checkpoints, Tags
Hypertext
RichView documents can contain hypertext links, both text and graphic.
RichView gives the user a visual clue to hyperlinks: it changes an image, or color and background of text under the mouse pointer.
Each type of hypertext link can have its own mouse cursor.
Hypertext can be used even without a mouse – users can navigate through hypertext links with Tab and Shift+Tab keys. The active link is outlined with a dotted rectangle and can be executed with Enter key.
Hypertext in the editor works when the user presses and holds Control, or in read-only mode.
Actions on hypertext clicks are fully customizable.
Documents can include inserted Delphi controls (for example, buttons). It's not very difficult to make them work like hypertext links.
Demo for hypertext:
- Demos\Delphi\MultiDemo\ subdirectory of RichView installation, or
- Demos\CBuilder\MultiDemo\ subdirectory of RichView installation, or
- download the compiled demo.
Tutorial (tutorial 2, projects 5-8):
- Demos\Delphi\Tutorial\ subdirectory of RichView installation, or
- Demos\CBuilder\Tutorial\ subdirectory of RichView installation.
and many other demos.
See also on the support forum:
Checkpoints
Some positions in the document can be marked with checkpoints (in other word processing tools, they correspond to bookmarks or anchors).
Checkpoints can work as targets for hypertext clicks (you can scroll document to the checkpoint in response to the click).
An event occurs when some checkpoint becomes visible as a result of scrolling in the document.
Demo for checkpoints:
- Demos\Delphi\MultiDemo\ subdirectory of RichView installation, or
- Demos\CBuilder\MultiDemo\ subdirectory of RichView installation, or
- download the compiled demo.
Tutorial (tutorial 2, projects 2,3,4):
- Demos\Delphi\Tutorial\ subdirectory of RichView installation, or
- Demos\CBuilder\Tutorial\ subdirectory of RichView installation.
Tags
Each document item (such as text or image) has an associated value which can be an integer or a string (depending on options).
Tags can be used for hypertext purposes (for example, to define a target of a hypertext click), or for implementing fields/mail merge features.
Fields
RichView does not have a special support for fields in text, because its tagged architecture makes them unnecessary. Each text item has associated tag, special editing properties can be achieved with the text protection feature.
See demo projects
- Demos\Delphi\Assorted\Fields\ subdirectory of RichView installation, or
- Demos\CBuilder\Assorted\Fields\ subdirectory of RichView installation.
See also on the support forum:
|