Posted 18 years ago
by Jake Pearson
-
Software Developer,
Alion Science and Technology
Hi,
In my application, I would like to be able to hide some Properties/Methods from my users when the intelliprompt dropdown displays. For example, lets say I have a class called ExtraMath that has in a couple of methods like Add and Subtract. If the user types in code like:The intelliprompt would show Add and Subtract and then all of the methods that come out of object (I think there are 6). I would like to have the option of filtering out the noise from the intelliprompt list.
I imagine you could add an event to SyntaxEditor called something like OnIntellipromptDisplay where the delegate looks something like this:Token would be the Token that preceded the trigger that caused the intelliprompt to show. I don't know if this is the best way to do this, but in general I am looking for some idea about what class/type/namespace is about to be shown so I can no what to filter on.
The List would be of some kind of intelliprompt entry object that had in it at least the text to be displayed and a Visible flag that I could flip.
I hope that this makes sense, but if not please let me know.
thanks,
Jake
In my application, I would like to be able to hide some Properties/Methods from my users when the intelliprompt dropdown displays. For example, lets say I have a class called ExtraMath that has in a couple of methods like Add and Subtract. If the user types in code like:
ExtraMath math = new ExtraMath();
math.
I imagine you could add an event to SyntaxEditor called something like OnIntellipromptDisplay where the delegate looks something like this:
public delegate void OnIntellipromptDisplay(object sender, Token token, List<IntellipromptEntry>);
The List would be of some kind of intelliprompt entry object that had in it at least the text to be displayed and a Visible flag that I could flip.
I hope that this makes sense, but if not please let me know.
thanks,
Jake