Results 1 to 2 of 2

Thread: ToolTipText for single cell in MSFlexGrid???

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 2005
    Location
    Ngorno
    Posts
    70

    ToolTipText for single cell in MSFlexGrid???

    I was trying to set different ToolTipText for different cells in a flexgrid.

    The tooltip is the same for the entire flexgrid, no matter the cell.

    Is it possible at all to set individual tooltips for the cells?
    If not - any alternative solutions?

    Thanks everyone

    Have a nice Wednesday
    There are 10 kinds of people in the world:
    Those who understand binary numbers and those who don't.

  2. #2
    PowerPoster BruceG's Avatar
    Join Date
    May 2000
    Location
    New Jersey (USA)
    Posts
    2,657

    Re: ToolTipText for single cell in MSFlexGrid???

    Basically, in the MouseMove event, you can get the MouseRow & MouseCol - then set the ToolTipText of the grid accordingly. The code below displays the contents of the current cell you are hovering over in the tooltip. You can modify this according to your needs.
    VB Code:
    1. Private Sub grdTest_MouseMove _
    2.     (Button As Integer, Shift As Integer, X As Single, Y As Single)
    3.    
    4.     On Error Resume Next
    5.    
    6.     With grdTest
    7.         .ToolTipText = .TextMatrix(.MouseRow, .MouseCol)
    8.     End With
    9.    
    10. End Sub
    "It's cold gin time again ..."

    Check out my website here.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width