Solved

Flexgrid tooltips

Posted on 2000-03-22
5
1,142 Views
Last Modified: 2013-12-25
How do you add tooltips to a flexgrid cell?
0
Comment
Question by:d_jedi
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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…

757 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now