Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Mouse move event for Boxes and arrows (Read 1975 times)
DongJoKim
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 1
Joined: Oct 28th, 2005
Mouse move event for Boxes and arrows
Oct 28th, 2005 at 2:17am
Print Post  
Hello.

My question is:

How can I generate an event when the mouse is move(or over) a box or arrow?
I'm almost sure that this is possible, but I havent found the event that could do this.
  
Back to top
 
IP Logged
 
Iva
Junior Member
**
Offline


MindFusion support

Posts: 55
Joined: Aug 6th, 2005
Re: Mouse move event for Boxes and arrows
Reply #1 - Oct 28th, 2005 at 5:09am
Print Post  
Hello,

You might do something like this sample from the MouseMove help topic:

Code
Select All
Private Sub fc_MouseMove(ByVal docX As Long, ByVal docY As Long)
  Dim obj As Object
  Dim b As box

  'get the object under the mouse pointer
  obj = fc.ObjectFromPoint(docX, docY, True, False)
  If obj Is Nothing Then
    'clear the status bar message
    statusBar.Panels(1).Text = ""
    Exit Sub
  End If

  'if it is a box ...
  If TypeOf obj Is box Then
    b = obj
    statusBar.Panels(1).Text = b.UserString
  End If
End Sub
 



It uses the ObjectFromPoint method to detect what diagram item is under the mouse and updates the statusbar text accordingly.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint