help mouse click/rightclick

General TRichView support forum. Please post your questions here
Post Reply
KFC123
Posts: 13
Joined: Fri Apr 21, 2006 7:27 am

help mouse click/rightclick

Post by KFC123 »

Hi there,
I am using TRichView. I try to catch mouse click event when click on anywhere of TRichView. Using OnClick is fine for my case, however, to implement OnClick will cover selection operation. When using OnRVRightclick instead, the problem is solved but rightclick event can only triggered when clicked on the text. Can RVRightclick triggered whereever I click on TRichview?

Thanks in advance.
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Use OnRVMouseUp
KFC123
Posts: 13
Joined: Fri Apr 21, 2006 7:27 am

Post by KFC123 »

Sergey Tkachenko wrote:Use OnRVMouseUp
But OnRVxxx only work on the text , I want an event work on everywhere (including blank area) of richview
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

No, OnRVMouseDown and OnRVMouseUp work when clicking on any place.
When clicking on blank area, ItemNo parameter = -1.
Post Reply