Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - Problem in XTP_NM_REPORT_HYPERLINK in 15.
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Problem in XTP_NM_REPORT_HYPERLINK in 15.

 Post Reply Post Reply
Author
Message
Sandro78 View Drop Down
Newbie
Newbie
Avatar

Joined: 05 September 2011
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote Sandro78 Quote  Post ReplyReply Direct Link To This Post Topic: Problem in XTP_NM_REPORT_HYPERLINK in 15.
    Posted: 05 September 2011 at 4:49am
I recently installed Codejoke toolkit 15.3.1 and I have noticed an anomaly in the XTP_NM_REPORT_HYPERLINK event,  that was not present in earlier versions.

I have created a ReportView where some of the slots contain hyper links, and the behavior of these depends on whether you click on it with the right or with the  left mouse button.

If you click the left mouse button is an report view is opened, if you click with the right mouse button a context menu appears that he used to handle that particular slot.

The problem that presents itself and the following.

Clicking with the left button we have the following message queue:

NM_CLICK
XTP_NM_REPORT_HYPERLINK

and if we click with the right mouse button we have the following message queue:

NM_CLICK
XTP_NM_REPORT_HYPERLINK  (Was not present in the earlier version)
NM_RCLICK

In previous versions of Codejoke clicking  with the right button, 
XTP_NM_REPORT_HYPERLINK was not included in the message queue, so to have the following message queue:


NM_CLICK
NM_RCLICK

How do I remove the event XTP_NM_REPORT_HYPERLINKmessage from the second  queue?

Thank you for any help
Back to Top
Sandro78 View Drop Down
Newbie
Newbie
Avatar

Joined: 05 September 2011
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote Sandro78 Quote  Post ReplyReply Direct Link To This Post Posted: 06 September 2011 at 9:46am
I have resolved using the following option in my report control:

GetReportCtrl().GetBehavior()->SetScheme(xtpReportBehaviorOutlook2003);
GetReportCtrl().GetBehavior()->Row->MouseUp->Right->bFocusRowTemporarily = FALSE;
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.156 seconds.