Changing text case inside RVE

General TRichView support forum. Please post your questions here
Post Reply
Marsianin
Posts: 193
Joined: Sun Sep 25, 2005 11:03 pm

Changing text case inside RVE

Post 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);
Sergey Tkachenko
Site Admin
Posts: 17559
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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)
Post Reply