autoreplace and triggers - what have I missed?

SyntaxEditor for Windows Forms Forum

Posted 19 years ago by GavinK151

I am keen to try out the auto-replace feature provided by the SyntaxEditor but I cant seem to get anything useful to happen :-(

I have loaded the language definition file of choice
I have added some items to the AutoReplace range for mis-spelled words for example.
I have then created some code to just print debug info in the "AutoReplacePerformed" action for the editor

but this event never seems to fire. I dumped out the triggers collection and see "<" and "=".

I am certain I need to enable something but have missed out on what. I do have the propery "AutoReplaceTriggersEnabled" set to true in the form designer....

What have I missed/totally misunderstood/donr completely wrong?

thanks :-)


[Modified at 09/12/2005 11:45 AM]

Comments (1)

Posted 19 years ago by Actipro Software Support - Cleveland, OH, USA
You need to make sure the language definition has an auto-replace trigger defined. Look at our C# sample def. That shows one.

In our sample app, you can type in the word (without quotes) "itn" and then press TAB and it will auto-correct it. Look in the code for "itn" (with quotes) and you can see where that is set up.

Of course you also need AutoReplaceTriggersEnabled set to true.

Actipro Software Support

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

Add Comment

Please log in to a validated account to post comments.