Print Page | Close Window

HitTest/Object Coordinates in MouseEvents for ML

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=13690
Printed Date: 07 July 2024 at 2:54pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: HitTest/Object Coordinates in MouseEvents for ML
Posted By: jpbro
Subject: HitTest/Object Coordinates in MouseEvents for ML
Date Posted: 15 March 2009 at 9:54am
Is it possible to perform a HitTest or get the mouse coordinates relative to the sending object when using the Mouse* events for objects in the MarkupLabel? For example:


      '-----------Code clipped for brevity
      Set lo_MouseBorderTop = .MarkupContext.Parse("<Border Background='#00FF0000'></Border>")
      With lo_MouseBorderTop
         .Name = "MouseBorderTop" & vbTab & i
        
         .AddHandler .MouseMoveEvent, "MouseMove"
      End With
      ' ------------Code clipped

Public Sub MouseMove(ByVal Sender As MarkupObject, ByVal Args As MarkupRoutedEventArgs)
     ' Determine the X & Y coordinates of the mouse relative to the Sender object
End Sub


Thanks.


-------------
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3

Language: Visual Basic 6.0 SP6




Replies:
Posted By: Oleg
Date Posted: 16 March 2009 at 8:05am
Seems not for ActiveX version :(

-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: jpbro
Date Posted: 16 March 2009 at 5:03pm
Thanks Oleg...Is this something we can expect at some point? Hit testing/XY can be pretty important for mouse operations.

-------------
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3

Language: Visual Basic 6.0 SP6



Posted By: Oleg
Date Posted: 17 March 2009 at 2:10am

Hi,

Added to todo list :)


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: jpbro
Date Posted: 17 March 2009 at 12:46pm
Great, thanks a lot!

-------------
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3

Language: Visual Basic 6.0 SP6




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net