Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Report Control
  New Posts New Posts RSS Feed - Right Click on ReportRow
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Right Click on ReportRow

 Post Reply Post Reply
Author
Message
nth78 View Drop Down
Newbie
Newbie


Joined: 11 March 2009
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote nth78 Quote  Post ReplyReply Direct Link To This Post Topic: Right Click on ReportRow
    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.
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post 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....
Back to Top
nth78 View Drop Down
Newbie
Newbie


Joined: 11 March 2009
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote nth78 Quote  Post ReplyReply Direct Link To This Post Posted: 13 March 2009 at 9:10am
Thanks, I'll try that!
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.172 seconds.