Application and Scripts
Note: This section is applicable only if you are using the GUI Application plug-in (to edit GUI applications) and GUI Generation plug-in (if you need to generate the code) with Views Studio.
To use Script for Views in the generated C++ application, the appropriate libraries must be linked with your application and initialized by your application. If you want Views Studio Script Edition to generate the required makefile and initialization code for you, check the Use Script toggle button in the Script page of the Application inspector.
Script Option Checked in the Application Inspector
Note: The Use Script option is checked by default. If you want the option to default to the other choice, set the JVScriptApplication option to false in an option file.
A script file can be attached to an application. In this case, it is loaded when you test your application in ivfstudio and when you run the generated application. To specify a script file for your application, use the Script File field in the Script page of the Application Inspector.
Your application can be accessed by the global Script variable Application. This variable can be used in the generated application, and in ivfstudio when the application is being tested.
Note: This global variable must not be used when you test the current buffer.
Published date: 05/24/2022
Last modified date: 02/24/2022