By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,564 Members | 1,070 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,564 IT Pros & Developers. It's quick & easy.

How to create Intellisense?

P: n/a
Hi,
I would like to create the intellisense feature in an editor I'm
working on, any pointers on how to do this? Basically the keywords
preceeding the . (period) to invoke the intellisense box will be user
defined, I know how to get those, just need to know how to create that
feature of knowing exactly what text is typed in and what to pop up.

Thank you.
Nov 16 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
If you have your own editor, it's very simple to provide intellisense
support.

Firstly, you need to look for trigger keys. Dot is one trigger. When you
get the trigger, all you have to do is walk back your text buffer from the
point of insertion to find the word on which the trigger happened. You go
and check your list of words to find out if it supports intellisense (these
information could come from an xml file).

Once this is done, showing the intellisense windiw os trivial. You subclass
a control that contains a listview control (to display the little icon on
the left) and add this control to your editor. Handle the OnLostFocus event
and the control key presses (Escape and Enter) - and depending on the event,
you dispose the intellisense control and accept/reject the selection.

HTH

-vJ

"soni29" <so****@hotmail.com> wrote in message
news:ca**************************@posting.google.c om...
Hi,
I would like to create the intellisense feature in an editor I'm
working on, any pointers on how to do this? Basically the keywords
preceeding the . (period) to invoke the intellisense box will be user
defined, I know how to get those, just need to know how to create that
feature of knowing exactly what text is typed in and what to pop up.

Thank you.

Nov 16 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.