Page 1 of 1

Selected text

Posted: Sun Feb 03, 2008 11:11 am
by tors
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

Posted: Sun Feb 03, 2008 4:38 pm
by Sergey Tkachenko
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