I added a list into the CssDynamicSyntaxLanguage just like in the HtmlDynamicSyntaxLanguage. When I start typing the "{" the memberlist doesn't show.
Protected Overrides Sub OnSyntaxEditorTriggerActivated(ByVal syntaxEditor As SyntaxEditor, ByVal e As TriggerEventArgs)
Dim memberList As IntelliPromptMemberList = syntaxEditor.IntelliPrompt.MemberList
' Set IntelliPrompt ImageList
memberList.ImageList = ActiproSoftware.SyntaxEditor.SyntaxEditor.ReflectionImageList
' Add items to the list
Dim _blue As Integer = CInt(ActiproSoftware.Products.SyntaxEditor.IconResource.XmlTag)
Dim _orange As Integer = CInt(ActiproSoftware.Products.SyntaxEditor.IconResource.XmlTag)
Dim _red As Integer = CInt(ActiproSoftware.Products.SyntaxEditor.IconResource.XmlTag)
Select Case e.Trigger.Key
Case "TagAutoCompleteTrigger"
' Call the base method
MyBase.OnSyntaxEditorTriggerActivated(syntaxEditor, e)
Case "TagListTrigger"
' Get the member list
With memberList
.ResetAllowedCharacters()
.AllowedCharacters.Add("!"c)
.AllowedCharacters.Add("-"c)
.Clear()
' see which reference has been selected
Select Case Form1.combobox_reference.Text
Case "CSS 2.1"
.Add(New IntelliPromptMemberListItem("azimuth", _orange, "Used to give the impression that a sound is coming from a specific horizontal direction", "{", "}"))
.Add(New IntelliPromptMemberListItem("background-attachment", _orange, "Specifies whether background images should scroll or be fixed in a browser window", "{", "}"))
.Add(New IntelliPromptMemberListItem("background-color", _orange, "Specifies the background color of an element", "{", "}"))
.Add(New IntelliPromptMemberListItem("background-image", _orange, "Specifies the background image of an element", "{", "}"))
.Add(New IntelliPromptMemberListItem("background-position", _orange, "Specifies the initial position of a background image", "{", "}"))
.Add(New IntelliPromptMemberListItem("background-repeat", _orange, "Specifies whether the image is repeated (tiled), and how", "{", "}"))
Case "CSS 3"
.Add(New IntelliPromptMemberListItem("azimuth", _orange, "Used to give the impression that a sound is coming from a specific horizontal direction", "{", "}"))
.Add(New IntelliPromptMemberListItem("background-attachment", _orange, "Specifies whether background images should scroll or be fixed in a browser window", "{", "}"))
End Select
' Show the list
If .Count > 0 Then
.Show()
End If
End With
End Select
End Sub 'OnSyntaxEditorTriggerActivated