Possibility to recognize triple click?

General TRichView support forum. Please post your questions here
Post Reply
Jim Knopf
Posts: 241
Joined: Mon Dec 30, 2013 10:07 pm
Location: Austria
Contact:

Possibility to recognize triple click?

Post by Jim Knopf »

Is there a possibility to recognize when a user triple-clicks?
To append in case of copying a CRLF
Sergey Tkachenko
Site Admin
Posts: 17559
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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"
Jim Knopf
Posts: 241
Joined: Mon Dec 30, 2013 10:07 pm
Location: Austria
Contact:

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

Post 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.
Jim Knopf
Posts: 241
Joined: Mon Dec 30, 2013 10:07 pm
Location: Austria
Contact:

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