ListView: Displaying a tooltip without mouse hovering
From: Faraz Azhar (itz_faraz_at_hotmail.com)
Date: 03/16/04
- Next message: TOMMY: "Great Tools for Visual Basic"
- Previous message: Rick: "DataGrid and Scrollbars"
- Messages sorted by: [ date ] [ thread ]
Date: 15 Mar 2004 23:14:08 -0800
Hello,
I use the following code to display a tooltip on a textbox. This is
like a 'static' tooltip. It appears without mousehovering and we can
make it appear whenever we want:
Public Sub ShowBalloonTip(hwndEdit As Long, szTitle As String, szText
As String, tipIcon As EditTipIcon)
Dim ebtTip As EDITBALLOONTIP
With ebtTip
.cbStruct = Len(ebtTip)
.pszText = StrPtr(szText)
.pszTitle = StrPtr(szTitle)
.ttiIcon = tipIcon
End With
SendMessage hwndEdit, EM_SHOWBALLOONTIP, 0&, ebtTip
End Sub
But of course, this is for textbox. I saw a very similar thing used by
a program on listview. It was the same kind of balloon tip ( PS. i
know how to make the usual balloon tips when mouse hovers something )
as used by a textbox. How to do it?
- Faraz Azhar
- Next message: TOMMY: "Great Tools for Visual Basic"
- Previous message: Rick: "DataGrid and Scrollbars"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|