[Question] Hyperlink and right mouse button
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=18188
Printed Date: 15 November 2024 at 10:55pm Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com
Topic: [Question] Hyperlink and right mouse button
Posted By: Peter59
Subject: [Question] Hyperlink and right mouse button
Date Posted: 08 April 2011 at 4:59am
Hello,
when clicking a hyperlink in an item with the right mouse button I want to show a popupmenu instead of executing the HyperlinkClick event (to show the popupmenu is not the problem), means, the HyperlinkClick event should only be executed when using the left mouse button.
I tried to determine the used mouse button with GetAsyncKeyState() with no success.
Does anyone has another idea or maybe a solution?
Thanks, Peter
------------- Product: Xtreme SuitePro (ActiveX) version 15.2.1
Platform: Windows 7 64 Bit
Language: Visual Basic 6.0 SP6
|
Replies:
Posted By: jpbro
Date Posted: 08 April 2011 at 7:31am
My HyperlinkClick event only fires on left-click - does yours fire on right-click?
If HyperlinkClick event only fires on left-click, it is relatively easy to do what you want, but only if your cell only contains a single hyperlink and the entire text of the cell is a hyperlink (not a partial text link). Just use the RowRClick event and test against the Row and Column objects.
If you have multiple hyperlinks per cell or Hyperlinks that only cover part of the text in the cell, then I haven't figured out a way to do it yet (without using Markup for your hyperlinks, just using the built in Hyperlinks feature)- maybe CJ needs to add some way to test for hyperlinks in the ReportHitTest object?
------------- Product: Xtreme SuitePro (ActiveX) version 16.2.6 Platform: Windows XP - SP3
Language: Visual Basic 6.0 SP6
|
|