Solved

Flexgrid tooltips

Posted on 2000-03-22
5
1,173 Views
Last Modified: 2013-12-25
How do you add tooltips to a flexgrid cell?
0
Comment
Question by:d_jedi
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 14

Expert Comment

by:mcrider
ID: 2646269
You can do this.... In the Click Event of the flexgrid:

Private Sub MSFlexGrid1_Click()
    With MSFlexGrid1
        .ToolTipText = "This is row " + CStr(.Row) + " Col " + CStr(.Col)
    End With
End Sub


Cheers!®©
0
 

Author Comment

by:d_jedi
ID: 2650637
Thanx for responding.. but that's not quite what I wanted..

I wanted when a the tip to appear when the mouse passes over the cell (as with other tooltips..)
0
 
LVL 14

Expert Comment

by:mcrider
ID: 2651143
Well, I think the only other way would be to create a window hook, but that is going to be *alot* of work...

See the following MS article:

HOWTO: Hook Into a Window's Messages Using AddressOf
http://support.microsoft.com/support/kb/articles/Q168/7/95.asp?LNG=ENG&SA=MSDN&FR=0 
 

Hope this helps!


Cheers!®©
0
 
LVL 12

Accepted Solution

by:
jgv earned 20 total points
ID: 2667505
Private Sub MSFlexGrid1_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single)

With MSFlexGrid1
    .ToolTipText = "Mouse is over Column: " & .MouseCol & "  Row: " & .MouseRow
End With

End Sub
0
 
LVL 2

Expert Comment

by:venkatravi_78
ID: 7266591
'This will give u the exact value under the cells

Private Sub MSHFlexGrid1_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single)
With MSHFlexGrid1
.ToolTipText = .TextMatrix(.MouseRow, .MouseCol)
End With
End Sub
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question