autoreplace and triggers - what have I missed?

SyntaxEditor for Windows Forms Forum

Posted 14 years ago by GavinK151
Avatar
hi!

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 :-)

Gav

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

Comments (1)

Posted 14 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
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 (v2018.1 build 0341) was released 6 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.