Hello,
I have a child of CSharpSyntaxLanguage in my project. I'd like to add one item additionally to the intelliprompt list if some conditions execute. I also would like to display this item first in list.
To achive this I override ShowIntelliPromptMemberList.Everything is displayed correctly except that my new item has long label and if other items in MemberList are shorter than this label, MemberList preserves its width before my item addition.
How can i prompt IntelliPrompt list to resize the list to my item's width?
Thanks in advance,
Marina
I have a child of CSharpSyntaxLanguage in my project. I'd like to add one item additionally to the intelliprompt list if some conditions execute. I also would like to display this item first in list.
To achive this I override ShowIntelliPromptMemberList.
public override bool ShowIntelliPromptMemberList(SyntaxEditor syntaxEditor)
{
bool word = base.ShowIntelliPromptMemberList(syntaxEditor);
IntelliPromptMemberList list = syntaxEditor.IntelliPrompt.MemberList;
IntelliPromptMemberListItem[] items = new IntelliPromptMemberListItem[list.Count];
for (int i = 0; i < list.Count; i++)
{
items[i] = list[i];
}
list.Clear();
list.Sorted = false;
IntelliPromptMemberListItem itemi = new IntelliPromptMemberListItem("very long label", (int)ActiproSoftware.Products.SyntaxEditor.IconResource.Warning, "", "", "");
list.Add(itemi);
foreach (IntelliPromptMemberListItem item in items)
{
list.Add(item);
}
return word;
}
How can i prompt IntelliPrompt list to resize the list to my item's width?
Thanks in advance,
Marina