
Originally Posted by
isnoend07
Thanks for the tip, working on my tooltips as i answer. Had to pay a renta coder to make the tooltip show on the text portion of a combobox
Here's another workaround I use....
When you have controls right next to each other (where the flag/balloon can't get reset by moving the mouse) you'll notice the balloon won't be shown. So in my showtootip sub I have it compare the last handle passed to it and reset the balloon/flag if needed.
Code:
Public Sub ShowToolTip(ToolTip As String, LHwnd As Long, Optional Title As String = "Main Program Title Here")
' // show tooltip //
Static lastHndle As Long
If lastHndle <> LHwnd Then
lastHndle = LHwnd
ToolTipOff
End If
If m_bInLable = False Then
m_bInLable = True
Tt.Title = Title
Tt.TipText = ToolTip
Tt.Create LHwnd
End If
End Sub
Public Sub ToolTipOff()
' // kill balloon if exsist //
If m_bInLable = True Then
Tt.Destroy
m_bInLable = False
End If
End Sub