Intelliprompt on Token

SyntaxEditor for Windows Forms Forum

Posted 18 years ago by John Youren

I am using the SyntaxEditor for a language that has multi word/token commands.

For example,

Make Object Cube

I would to show an intelliprompt box when the user types make, much like what happens when you use a trigger with a character. So, is it possible to do it using tokens, as well as characters?



Also, I have notice with intelliprompt box, when you press space it fills in the word for you, so if I have two choices e.g.

Make Object Cube
Make Object Cylinder

When I press space after 'Object' it will automatically insert Cube. Is there a way of preventing this?

[Modified at 01/25/2006 03:33 AM]

Comments (1)

Posted 18 years ago by Actipro Software Support - Cleveland, OH, USA
Hi John,

I think you'd want to add a trigger for the space character and then use a TextStream or TokenStream to look back at the previous word and see if it is "make". If so, then display the list.

The space character will insert a highlighted selection, as is the behavior in VS.NET. If you add the space character to editor.IntelliPrompt.MemberList.AllowedCharacters, it will not insert the selection when space is typed.

Actipro Software Support

The latest build of this product (v24.1.0) was released 4 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.