Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - RowLClick or RowClick, double click
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

RowLClick or RowClick, double click

 Post Reply Post Reply
Author
Message
McKloony View Drop Down
Senior Member
Senior Member
Avatar

Joined: 09 January 2007
Location: Germany
Status: Offline
Points: 340
Post Options Post Options   Thanks (0) Thanks(0)   Quote McKloony Quote  Post ReplyReply Direct Link To This Post Topic: RowLClick or RowClick, double click
    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
Back to Top
Romonaga View Drop Down
Newbie
Newbie


Joined: 16 July 2015
Location: Chicago
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote Romonaga Quote  Post ReplyReply Direct Link To This Post 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)
          {
          }
     }
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.141 seconds.