Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Report Control
  New Posts New Posts RSS Feed - [Question] Hyperlink and right mouse button
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

[Question] Hyperlink and right mouse button

 Post Reply Post Reply
Author
Message
Peter59 View Drop Down
Groupie
Groupie


Joined: 19 July 2007
Status: Offline
Points: 61
Post Options Post Options   Thanks (0) Thanks(0)   Quote Peter59 Quote  Post ReplyReply Direct Link To This Post Topic: [Question] Hyperlink and right mouse button
    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
Back to Top
jpbro View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 January 2007
Status: Offline
Points: 1355
Post Options Post Options   Thanks (0) Thanks(0)   Quote jpbro Quote  Post ReplyReply Direct Link To This Post 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

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.141 seconds.