Page 1 of 1

help mouse click/rightclick

Posted: Thu Aug 17, 2006 4:41 am
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.

Posted: Thu Aug 17, 2006 10:43 am
by Sergey Tkachenko
Use OnRVMouseUp

Posted: Thu Aug 17, 2006 11:50 am
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

Posted: Thu Aug 17, 2006 12:11 pm
by Sergey Tkachenko
No, OnRVMouseDown and OnRVMouseUp work when clicking on any place.
When clicking on blank area, ItemNo parameter = -1.