trichview.com Forum Index trichview.com
TRichView support forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Changing text case inside RVE

 
Post new topic   Reply to topic    trichview.com Forum Index -> Support
View previous topic :: View next topic  
Author Message
Marsianin



Joined: 25 Sep 2005
Posts: 127

PostPosted: Fri May 28, 2010 3:26 pm    Post subject: Changing text case inside RVE Reply with quote

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
View user's profile Send private message
Sergey Tkachenko
Site Admin


Joined: 27 Aug 2005
Posts: 6599

PostPosted: Fri May 28, 2010 3:30 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    trichview.com Forum Index -> Support All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group