| View previous topic :: View next topic |
| Author |
Message |
Marsianin
Joined: 25 Sep 2005 Posts: 127
|
Posted: Fri May 28, 2010 3:26 pm Post subject: Changing text case inside RVE |
|
|
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: | s:=RichViewEdit1.GetSelTextW;
...
RichViewEdit1.InsertTextW(s); |
|
|
| Back to top |
|
 |
Sergey Tkachenko Site Admin
Joined: 27 Aug 2005 Posts: 6599
|
Posted: Fri May 28, 2010 3:30 pm Post subject: |
|
|
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) |
|
| Back to top |
|
 |
|