Posted 18 years ago
by ernesto
![Avatar](https://secure.gravatar.com/avatar/6a242f4ed542bd55e8cc5262f0fca4cd.jpg?s=64&d=identicon&r=g)
Actipro
(1)
Do you have an example of populating the IntelliPrompt ParameterInfo from an XML file?
The language I am writing the editor for is not a .net language, but a custom language of simple English commands and very few parameters.
Example command: ANGLE
Example param: x1;y1;z1;x2;y2;z2;\100;\201
That is all for one of the commands, nothing fancy at all.
This example shows all that I really need to get the prompt to show up, but I would like to efficiently pass Parameter Info from the XML file into the Add method.
Dim offset As Integer = Editor1.SelectedView.Selection.EndOffset
Editor1.IntelliPrompt.ParameterInfo.Info.Clear()
Editor1.IntelliPrompt.ParameterInfo.Info.Add(("void Control.Invalidate()<br/>" + "Invalidates the entire surface of the control and causes the control to be redrawn."))
Editor1.IntelliPrompt.ParameterInfo.Info.Add(("void Control.Invalidate(System.Drawing.Rectangle rc, bool invalidateChildren)<br/>" + "rc: A System.Drawing.Rectangle object that represents the region to invalidate."))
Editor1.IntelliPrompt.ParameterInfo.Show((offset - 10))
(2)
How do I get the following KeyPressTrigger to pop up the IntelliPrompt automatically or do I need to still use the above code to do it from the Editors KeyTyped event?
<Triggers>
<KeyPressTrigger Key="MemberListTrigger" Character=" ">
<KeyPressTriggerValidStates>
<KeyPressTriggerValidState State="DefaultState" />
</KeyPressTriggerValidStates>
</KeyPressTrigger>
</Triggers>
(3) Is using an XML file for this stuff the best (most efficient) approach?
thanks
teamels
(1)
Do you have an example of populating the IntelliPrompt ParameterInfo from an XML file?
The language I am writing the editor for is not a .net language, but a custom language of simple English commands and very few parameters.
Example command: ANGLE
Example param: x1;y1;z1;x2;y2;z2;\100;\201
That is all for one of the commands, nothing fancy at all.
This example shows all that I really need to get the prompt to show up, but I would like to efficiently pass Parameter Info from the XML file into the Add method.
Dim offset As Integer = Editor1.SelectedView.Selection.EndOffset
Editor1.IntelliPrompt.ParameterInfo.Info.Clear()
Editor1.IntelliPrompt.ParameterInfo.Info.Add(("void Control.Invalidate()<br/>" + "Invalidates the entire surface of the control and causes the control to be redrawn."))
Editor1.IntelliPrompt.ParameterInfo.Info.Add(("void Control.Invalidate(System.Drawing.Rectangle rc, bool invalidateChildren)<br/>" + "rc: A System.Drawing.Rectangle object that represents the region to invalidate."))
Editor1.IntelliPrompt.ParameterInfo.Show((offset - 10))
(2)
How do I get the following KeyPressTrigger to pop up the IntelliPrompt automatically or do I need to still use the above code to do it from the Editors KeyTyped event?
<Triggers>
<KeyPressTrigger Key="MemberListTrigger" Character=" ">
<KeyPressTriggerValidStates>
<KeyPressTriggerValidState State="DefaultState" />
</KeyPressTriggerValidStates>
</KeyPressTrigger>
</Triggers>
(3) Is using an XML file for this stuff the best (most efficient) approach?
thanks
teamels