FIX: TreeView ToolTips Do Not Appear on Windows NTID: Q173943
|
The ToolTip for a TreeView node does not appear as expected when the node text exceeds the width of the TreeView control. This problem occurs with Windows NT and COMCTL32.OCX version 5.00.3714.
To work around this problem, you may use the MouseMove event of the
TreeView control to set the ToolTipText of the TreeView control so that it
matches the text of the node:
Private Sub TreeView1_MouseMove(Button As Integer, Shift As Integer, _
x As Single, y As Single)
Dim n As Node
Set n = TreeView1.HitTest(x, y)
If Not (n Is Nothing) Then
TreeView1.ToolTipText = n.Text
Else
TreeView1.ToolTipText = ""
End If
End Sub
Q189249 : HOWTO: Determine Which 32-bit Operating System Is Being Used
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This bug has been fixed in Visual Basic 6.0.
Private Sub Form_Load()
TreeView1.Width = 2000
TreeView1.Nodes.Add , , , _
"This is a line of really, really, really, really long text"
End Sub
Additional query words: kbVBp500bug kbVBp600fix kbVBp kbdsd kbDSupport kbControl
Keywords :
Version :
Platform : NT WINDOWS
Issue type : kbbug
Last Reviewed: June 10, 1999