Right Click on ReportRow |
Post Reply |
Author | |
nth78
Newbie Joined: 11 March 2009 Status: Offline Points: 4 |
Post Options
Thanks(0)
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. |
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
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.... |
|
nth78
Newbie Joined: 11 March 2009 Status: Offline Points: 4 |
Post Options
Thanks(0)
|
Thanks, I'll try that!
|
|
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 |