Solved

Flexgrid tooltips

Posted on 2000-03-22
5
1,168 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

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…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
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 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…

749 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