Print Page | Close Window

RowLClick or RowClick, double click

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=22660
Printed Date: 27 September 2024 at 1:27pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: RowLClick or RowClick, double click
Posted By: McKloony
Subject: RowLClick or RowClick, double click
Date Posted: 12 July 2015 at 7:13am
Why there is no RowLClick or RowClick Event? When I try to use a simple left mouse click Event, then I have to use the MouseUp Event. But this Event will also fired, if a user doubble click a row!

-------------
Product: Xtreme SuitePro (ActiveX) 16.2.5

Platform: XP / Windows 7

Language: Visual Basic 6.0 SP6



Replies:
Posted By: Romonaga
Date Posted: 16 July 2015 at 1:19pm
I was able to trap mouse clicks using these NOTIFY messagaes.

ON_NOTIFY(NM_DBLCLK, IDC_DOMGRID, OnReportLDblClick)
ON_NOTIFY(NM_RCLICK, IDC_DOMGRID, OnReportRightClick)
ON_NOTIFY(NM_CLICK, IDC_DOMGRID, OnReportLeftClick)
ON_NOTIFY(XTP_NM_REPORT_LBUTTONDOWN, IDC_DOMGRID, OnReportLButtonDown)
    

Example of how to get the ROW and COLUMN

int row = 0;
int col = 0;

XTP_NM_REPORTRECORDITEM *pItemNotify = reinterpret_cast<XTP_NM_REPORTRECORDITEM*>(pNotifyStruct);
if(pItemNotify->pRow != NULL && pItemNotify->pColumn != NULL)
     {
          row = pItemNotify->pRow->GetIndex();
          col = pItemNotify->pColumn->GetIndex();

          if(col == ytDOMLimit || col == ytDOMStop)
          {
          }
     }



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net