OK, it works.
I cannot show you the patch for two reasons: the development network is not attached to the internet and if you would see my C++ code you would cry blood :-/
So I'll try to explain you what I did:
- added in sdk_events.cpp and sdk_events.h two custom events: cbEVT_REQ_SCOPE and cbEVT_RESP_SCOPE
- an event of the first type is issued when I need the information
- added in codecompletion.cpp a RegisterEventSink pointing to a copy of OnValueTooltip. This copy is slightly different, e.g. the editor is not retrieved from the event. The active editor is used instead. Another difference is that the position used is the one of the caret.
- at the end of this function, istead of displaying the tooltip msg, an event is generated and the msg is added as string to it
- my plugin has a RegisterEventSink, too, fetches the second type of event, gets the strings and parses it
I hope you can undertand my description.
Thank you for your help!
Regards, e.p