Page 1 of 1

Changing text case inside RVE

Posted: Fri May 28, 2010 3:26 pm
by Marsianin
I have font case change feature in my app but got one problem.
How can I change case for selected text without losing text formatting?
The thing is not only in UPPERCASE and lowercase but I've implemented First Of Each Word Uppercase too.

Right now I'm using this code which loses different text formatting:

Code: Select all

s:=RichViewEdit1.GetSelTextW;
...
RichViewEdit1.InsertTextW(s);

Posted: Fri May 28, 2010 3:30 pm
by Sergey Tkachenko
Use the unit RVCharCase.pas, included in RichViewActions. This unit can be used separately from the actions.
(if you use RichViewActions, you can use TrvActionCharCase)