Posted 19 years ago
by Karl Grambow
I'm using InfoTips and, occassionally IntelliPrompts within InfoTips.
To make my life easier I created an InfoTipItem class with various properties, one of which is an Optional MemberList relating to the memberlist of IntelliPrompts for a given InfoTipItem.
On the editor's SelectionChanged event, I then figure out if the caret is on a word that needs an InfoTip and IntelliPrompt, and if so I display the relevant IntelliPrompt from the above class.
The problem is that if move the caret using the mouse the IntelliPrompt always appears beneath the word and overlaps the InfoTip. If I move the caret using the arrow keys the IntelliPrompt appears above the word.
Is there a way to force the IntelliPrompt to appear above the current position?
To make my life easier I created an InfoTipItem class with various properties, one of which is an Optional MemberList relating to the memberlist of IntelliPrompts for a given InfoTipItem.
On the editor's SelectionChanged event, I then figure out if the caret is on a word that needs an InfoTip and IntelliPrompt, and if so I display the relevant IntelliPrompt from the above class.
The problem is that if move the caret using the mouse the IntelliPrompt always appears beneath the word and overlaps the InfoTip. If I move the caret using the arrow keys the IntelliPrompt appears above the word.
Is there a way to force the IntelliPrompt to appear above the current position?
Dim CurrentInfoTipItem as New InfoTipItem
'do various bits and pieces
'create a member list for later use
CurrentInfoTip.AddMemberList('various params)
'
'
'
Private Sub Editor_SelectionChanged(...)
'find the current offset and determine what Token lies there.
'if the token is one that needs an InfoTip, display relevant InfoTip
'If the current InfoTip has an IntelliPrompt, show it
CurrentInfoTip.oMemberList.Show() '** if the selection_onchanged event was fired because of a mouse click, this IntelliPrompt shows up beneath the word.
End Sub