Select word with subsequent space by doubleclick
Posted: Sat Mar 01, 2014 6:15 pm
In most text programs the subsequent space also is selected if a word is doubleclicked. Is there a solution for TRichViewEdit to imitate this behaviour?
Support forums for TRichView, ScaleRichView, Report Workshop and RVMedia components
https://reportworkshop.com/forums/
Code: Select all
Word := RVU_Copy(Word, Offs, Len, ItemOptions);
Code: Select all
{$IFDEF RVSELECTWORDINCLUDESPACE}
while (Offs+Len-1<RVU_Length(Word,ItemOptions)) and
RVU_IsSpace(Word, Offs+Len, ItemOptions) do
inc(Len);
{$ENDIF}
It depends on the context. Usually I agree if you have to do something with this word. But during writing it is more comfortable including the spcae char to move the word to another place in the text.Sergey Tkachenko wrote:It was made intentionally, because I think that copying a word is more useful than copying a word with following spaces.