Capturing a Row single click event |
Post Reply |
Author | |
Shawshank
Senior Member Joined: 16 October 2005 Status: Offline Points: 117 |
Post Options
Thanks(0)
Posted: 01 July 2007 at 9:14pm |
I see that the _RowDblClick event nicely captures the Row and Item clicked upon. I really need that for a single click as well. I don't see that event. So I assume one must attempt to detect the coordinates of the mouse over the Row/Item? Would this be correct? Or is there a better way? If one must determine the Row/Item clicked using the _MouseDown event, is there any example code available for doing so?
Shawshank
|
|
sserge
Moderator Group Joined: 01 December 2004 Status: Offline Points: 1297 |
Post Options
Thanks(0)
|
Use _SelectionChanged event. So far a single click causes changes is selection, it will be called.
-- WBR, Serge |
|
Shawshank
Senior Member Joined: 16 October 2005 Status: Offline Points: 117 |
Post Options
Thanks(0)
|
That suggestion will not work for me as it is perfectly reasonable that a user would not be changing the selection in our app. I need to be able to detect the Row/Item selected so I can perform an action on that click if it occurs on a specific Row/Item. Is my original idea about detecting mouse coordinates the only way of doing this? If so, is there any sample code available? |
|
Baldur
Senior Member Joined: 22 November 2006 Location: Germany Status: Offline Points: 244 |
Post Options
Thanks(0)
|
You can use the MousDown/MouseUp-event with the HitTest-Method.
You get than the Item clicked.
I have solved it with:
The Report is fully editable.
In the RequestEdit-Event i set the cancel always to true and i have the row, column and item singleclicked.
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |