Update cursor in an application with mouse move events. Show tooltip like floating image next to the cursor with coords.

Hi
I'm working in ArcMap (vba and/or vb and/ or vb.net) and would like to show the users current mouse movement dependent information  as they move their cursor.  For example, show users X, Y in a floating tooltip like box next to the current cursor.  Naturally, I could put this info in the status bar but want the user to get feedback directly from the cursor as they move it.  I'm thinking I could write a new icon each mouse move with updated text but can't think of a way to do this.
symmanAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

kdwoodCommented:
How about this:

1. Create a public variable on your form called myTTIP:

Public myTTIP As New ToolTip

2. On your Form's MouseMove event, do this:

Private Sub Form1_MouseMove(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles MyBase.MouseMove

        myTTIP.Show("Mouse Coords=" & e.X & ",  " & e.Y, Me)

End Sub

Regards,

Keith
0
symmanAuthor Commented:
Thanks Keith.  I'll check this out.  I'm still not sure if the client area in the ArcMap Appliation will respond but I'll check it out.  Any ideas for regular old vb6?

0
kdwoodCommented:
I started my VB experience with .Net, so I can't be much help with VB6.  Here are a couple of links I found that me be of help.

http://www.thescarms.com/vbasic/tooltip.aspx
http://www.freevbcode.com/ShowCode.asp?ID=1232

Hope this helps.

Regards,

Keith
0
symmanAuthor Commented:
Thanks again to those who responded.

In the end I was able to find an object in my application, using the IDisplay interface (naturally) that provided access to a text function.  In the end I didn't get the niffy little floaty box but simply writing text to the screen as the mouse moved was suitable for my needs.
 
Cheers.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.