StateChanged or StateLeave/StateEnter event

SyntaxEditor for Windows Forms Forum

Posted 14 years ago by Avalon - TX
Avatar
I think it would be extremely useful to have a StateChanged or StateLeave/StateEnter event. I am pretty sure this is something many developers that will be doing different parsing based upon states would like to be notified of the current state being changed as this would allow for us to reparse.

For example I have a State called ParameterDeclaration. When I leave this prameter declaration I would like to be notified so that i may reanalyze, checking for errors and rebuilding the list of parameters for the sql stored procedure.

Comments (1)

Posted 14 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
You can probably achieve this sort of feature right now. In the SelectionChanged event, just keep track of what Token you are on. Then next time it gets called, compare the new Token's lexical state with the old one and if they change, you know to execute your code.


Actipro Software Support

The latest build of this product (v2018.1 build 0341) 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.