[Question] Hyperlink and right mouse button |
Post Reply |
Author | |
Peter59
Groupie Joined: 19 July 2007 Status: Offline Points: 61 |
Post Options
Thanks(0)
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 |
|
jpbro
Senior Member Joined: 12 January 2007 Status: Offline Points: 1355 |
Post Options
Thanks(0)
|
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 |
|
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 |