[SOLVED] Right click coordinates not consistent |
Post Reply |
Author | |
Aaron Koolen
Groupie Joined: 22 July 2009 Status: Offline Points: 32 |
Post Options
Thanks(0)
Posted: 18 September 2011 at 8:48pm |
With the upgrade to 15.1.3 we have noticed that the coordinates in the XTP_NM_REPORTRECORDITEM passed into the right click handler are not consistent between clicking on a row and in the empty area of the control.
In the latter it looks like coordinates are not translated to screen coordinates, and in the former they are (As they were in older versions). Popup menus that are displayed on right click now appear in different positions depending on where you click. Is there any known fix for this? Thanks Aaron |
|
Product: Xtreme ToolkitPro v13.3.0 (MFC)
Platform: Windows XP (32bit) - SP 3 Language: Visual C++ 6 |
|
adrien
Senior Member Joined: 30 April 2007 Location: New Zealand Status: Offline Points: 449 |
Post Options
Thanks(0)
|
looks like a ClientToScreen is missing at line 3528 in XTPReportControl.cpp
it should be
|
|
ABuenger
Newbie Joined: 02 February 2006 Status: Offline Points: 1075 |
Post Options
Thanks(0)
|
Thanks, it's indeed a bug. I've added a new test to the ReportSample.
Andre |
|
Codejock support
|
|
ABuenger
Newbie Joined: 02 February 2006 Status: Offline Points: 1075 |
Post Options
Thanks(0)
|
This has been fixed for the next release. As a workaround you can add the following code to your handler.
#if _XTPLIB_VERSION_PREFIX==1513 XTP_NM_REPORTRECORDITEM *pItemNotify = reinterpret_cast<XTP_NM_REPORTRECORDITEM*>(pNotifyStruct); if (NULL == pItemNotify->pRow) { m_wndReportControl.ClientToScreen(&pItemNotify->pt); } #endif |
|
Codejock support
|
|
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 |