Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Report Control
  New Posts New Posts RSS Feed - Capturing a Row single click event
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Capturing a Row single click event

 Post Reply Post Reply
Author
Message
Shawshank View Drop Down
Senior Member
Senior Member


Joined: 16 October 2005
Status: Offline
Points: 117
Post Options Post Options   Thanks (0) Thanks(0)   Quote Shawshank Quote  Post ReplyReply Direct Link To This Post Topic: Capturing a Row single click event
    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
Back to Top
sserge View Drop Down
Moderator Group
Moderator Group


Joined: 01 December 2004
Status: Offline
Points: 1297
Post Options Post Options   Thanks (0) Thanks(0)   Quote sserge Quote  Post ReplyReply Direct Link To This Post Posted: 04 July 2007 at 4:30pm
Use _SelectionChanged event. So far a single click causes changes is selection, it will be called.

--
WBR,
Serge
Back to Top
Shawshank View Drop Down
Senior Member
Senior Member


Joined: 16 October 2005
Status: Offline
Points: 117
Post Options Post Options   Thanks (0) Thanks(0)   Quote Shawshank Quote  Post ReplyReply Direct Link To This Post Posted: 04 July 2007 at 4:35pm

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?

Back to Top
Baldur View Drop Down
Senior Member
Senior Member


Joined: 22 November 2006
Location: Germany
Status: Offline
Points: 244
Post Options Post Options   Thanks (0) Thanks(0)   Quote Baldur Quote  Post ReplyReply Direct Link To This Post Posted: 30 October 2007 at 5:49am
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.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.203 seconds.