Print Page | Close Window

Right Click on ReportRow

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=13665
Printed Date: 14 November 2024 at 9:47pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Right Click on ReportRow
Posted By: nth78
Subject: Right Click on ReportRow
Date Posted: 12 March 2009 at 10:48am
I am using XtremeReportControl version 10.4 (yes I know it's old).  I'm trying to add a right click popup for the report row.  I can get the right click menu to display but it is always at the top left corner of my screen (0,0).  The problem i'm running into is that the AxXtremeReportControl::_DReportControlEvents_RowRClickEvent^ e doesn't have a x and y value like a normal mouseclick event so I can't tell my menu where to display.  Normally I would do menu->show(e->x,e->y) but that doesn't work with the ReportControl.

I'm using C++ .net in visual studio 2005.  Any info on how to get this to work is greatly apprecated.



Replies:
Posted By: Aaron
Date Posted: 13 March 2009 at 8:05am
Hi,
 
In CJ sample:
 
public Point CurrentMousePosition;
 
private void wndReportControl_MouseDownEvent(object sender, AxXtremeReportControl._DReportControlEvents_MouseDownEvent e){
 
CurrentMousePosition.X = e.x;
CurrentMousePosition.Y = e.y;
CurrentMousePosition = new Point(e.x + wndReportControl.Left, e.y + wndReportControl.Top);
 
}
 
 
and
 

private void wndReportControl_RowRClick(object sender, AxXtremeReportControl._DReportControlEvents_RowRClickEvent e){

System.Diagnostics.Debug.WriteLine("Context Menu. Row = " + e.row.Index);
//Display group popup if a group row is right-clicked
if (e.row.GroupRow)
{
GroupPopup.Show(this, CurrentMousePosition);
}
}
 
should show popupmenu in proper way
 
 
 


-------------
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....


Posted By: nth78
Date Posted: 13 March 2009 at 9:10am
Thanks, I'll try that!



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