1)Whether how to determine there is an selected text
To receive or set selected text and its properties
( Font, Colour and òï)
2)How to cut / insert the text and images in document with preservation of formatting
3)How to involve the lists
Selected text
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
1. See the help file, the topic "Selecting Part of RichView Document".
Selected text may have several different fonts. Of course, you can enumerate all selected text items and find common properties, but I suggest simply to use attributes of text at the position of caret, like RichViewActions and other demos do. These attributes are in RVStyle1.TextStyles[RichViewEdit1.CurTextStyleNo]
2) Sorry, I do not understand this question
3) Bullets and numbering? See the demo Demos\Delphi\Assorted\ListStyles\Bullets
Selected text may have several different fonts. Of course, you can enumerate all selected text items and find common properties, but I suggest simply to use attributes of text at the position of caret, like RichViewActions and other demos do. These attributes are in RVStyle1.TextStyles[RichViewEdit1.CurTextStyleNo]
2) Sorry, I do not understand this question
3) Bullets and numbering? See the demo Demos\Delphi\Assorted\ListStyles\Bullets