|
User can select a part RichView document with the mouse (in RichViewEdit he/she also can use Shift +caret movement keys).
You can turn off/on a word selection mode, see RVStyle.SelectionMode.
Selection Appearance
Selected text has RichView.Style.SelTextColor/InactiveSelTextColor color and RichView.Style.SelColor/InactiveSelColor background.
By default, it is clHighlightText on clHighlight both for active (focused) and inactive windows..
Selected bullets and hotspots are shaded with RichView.Style.SelColor, selected images and breaks have border with RichView.Style.SelColor color.
Operations
You can:
| ▪ | disallow making selection (clear rvoAllowSelection in Options); please do not use in editor! |
| ▪ | deselect RichView (Deselect; Invalidate); |
| ▪ | select the whole document (SelectAll; Invalidate); |
In editor you can:
| ▪ | cut selection to the Clipboard (CutDef); |
Note: All methods introduced in RichView which can change visual appearance require calling Invalidate or Refresh after them.
Note: All methods working with selection must be called only when the document is .
See also...
Searching and replacing
|