StateTransition to embedded resource file

SyntaxEditor for Windows Forms Forum

Posted 15 years ago by bnott
Avatar
Hello,

How can I use the StateTransition tag to transition to a language that is a file that is an assembly embedded resource?

Thanks

Comments (4)

Posted 15 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
There's no way to automatically do that however the tutorials in the documentation and the sample project show how to transition at run-time via code. That way you could load two languages separately from the resource stream and merge them together at run-time.


Actipro Software Support

Posted 15 years ago by bnott
Avatar
Its ok, you can say it... RTFM <IMG SRC="smile.gif" border="0">

I'll check it out.
Posted 15 years ago by bnott
Avatar
In the StateTransition tag, what about an either\or for Filename or DelayLoad. Where you could say DelayLoad="True", and that tells it that when it creates the LexicalStateTransition object, it should assume the user is responsible for setting the actual ChildLanguage at runtime before its needed. That way you wouldnt have to go through nearly as much manual language creation in code.

Thanks.
Posted 15 years ago by bnott
Avatar
Actually I think its fine the way it is. I created the entire State in the .xml file, but just left the StateTransition out of the Scopes block. Its easy to set the LexicalStateTransition property in code.

This software amazes me.

Thanks.
The latest build of this product (v2018.1 build 0341) was released 7 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.