Results 1 to 5 of 5

Thread: Show tool tip ballon on each node of a treeview

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Mar 2005
    Posts
    2,926

    Show tool tip ballon on each node of a treeview

    Possibile?
    Tks

  2. #2
    PowerPoster Arnoutdv's Avatar
    Join Date
    Oct 2013
    Posts
    6,733

    Re: Show tool tip ballon on each node of a treeview

    If you store the tooltips for each node in the .Tag property of the nodes then you can use this snippet:
    Code:
    Private Sub TreeView1_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single)
      Dim oNode As ComctlLib.Node
      If Button <> 0 Or Shift <> 0 Then Exit Sub
      Set oNode = TreeView1.HitTest(x, y)
      If oNode = Nothing Then Exit Sub
      TreeView1.ToolTipText = oNode.Tag
    End Sub

  3. #3

    Thread Starter
    PowerPoster
    Join Date
    Mar 2005
    Posts
    2,926

    Re: Show tool tip ballon on each node of a treeview

    Quote Originally Posted by Arnoutdv View Post
    If you store the tooltips for each node in the .Tag property of the nodes then you can use this snippet:
    Code:
    Private Sub TreeView1_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single)
      Dim oNode As ComctlLib.Node
      If Button <> 0 Or Shift <> 0 Then Exit Sub
      Set oNode = TreeView1.HitTest(x, y)
      If oNode = Nothing Then Exit Sub
      TreeView1.ToolTipText = oNode.Tag
    End Sub
    not work... error in
    ...
    If oNode = Nothing Then Exit Sub
    TreeView1.ToolTipText = oNode.Tag
    ...

  4. #4
    PowerPoster
    Join Date
    Feb 2017
    Posts
    5,666

    Re: Show tool tip ballon on each node of a treeview

    Code:
    If oNode Is Nothing Then Exit Sub

  5. #5
    PowerPoster Arnoutdv's Avatar
    Join Date
    Oct 2013
    Posts
    6,733

    Re: Show tool tip ballon on each node of a treeview

    Should be: If oNode Is Nothing Then Exit Sub

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