Page 1 of 1

Possibility to recognize triple click?

Posted: Wed Jun 08, 2016 2:02 pm
by Jim Knopf
Is there a possibility to recognize when a user triple-clicks?
To append in case of copying a CRLF

Posted: Wed Jun 08, 2016 3:08 pm
by Sergey Tkachenko
Currently, the component selects the whole paragraph on a triple click, but a special event is not implemented.

Sorry, I do not understand "To append in case of copying a CRLF"

Posted: Wed Jun 08, 2016 3:34 pm
by Jim Knopf
A user wants to copy/paste the whole paragraph within the ending CRLF so that it gives a complete paragraph at the target place - see picture.

The most optimum would be if TRichView includes the closing CRLF into its selection.

Image[/img]

Posted: Thu Jun 09, 2016 7:58 am
by Sergey Tkachenko
This problem is not related to a triple click.
It happens because TRichView does not have an invisible "end of paragraph" mark that can be selected or not (this mark causes other problems, you can see them in MS Word, for example paragraph properties are copied only together with this mark, so it's not possible to copy paragraph attributes, if you copy a beginning or a middle of the paragraph; so it has pros and contras)


It could be solved by selecting paragraphs differently - the end of selection is not at the end of the paragraph, but at the beginning of the next paragraph. It's not possible for the last paragraph, though.

Posted: Thu Jun 09, 2016 11:01 am
by Jim Knopf
Thank you, Sergey.
Users symply should select paragraphs by mouse move from beginning to beginning of paragraph because it works in this case.