Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Flexgrid tooltips

Posted on 2000-03-22
5
Medium Priority
?
1,215 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 60 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

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Suggested Courses

963 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