Appendix: VBScript The Import - Global Procedures dialog is displayed. Import – Global Procedures dialog 3. In the File field, click Browse to open a standard Windows file browser and select a global procedures file. (This is a plain text file that has been saved with the .gis file extension.) 4. Select Replace functions if they already exist to overwrite functions in the Global Procedures folder with functions imported from the file, if the functions have the same names. 5. In the Functions area, you can import All functions from the global procedures file ( *.gis ) or Only selected functions. 6. Click Import .
After the functions are imported, they should be available in the Global Procedures folder. Graphic Module GRAPHICS SCRIPT The Graphics Script interface can be edited by its icon from the Graphics tab of the Project Explorer: This interface can be used to execute logics on the following events, based on pre-defined sub-routines: • Graphics_OnStart() : The code configured within this sub-routine is automatically executed just once when the graphic module is started. This interface is useful for initializing variables or executing logics that must be implemented when running the project. • Graphics_WhileRunning() :
The code configured within this sub-routine is automatically executed continuously while the graphic module is running. The rate in which this sub-routine is called depends on the performance of the platform where the project is running. • Graphics_OnEnd() : The code configured within this sub-routine is automatically executed just once when the graphic module is closed. • Graphics_OnScreenResize( width , height ) : The code configured within this sub-routine is automatically executed just once when the screen resolution of the runtime station changes. The new width and height of the screen (in pixels) are passed to the sub-routine as parameters. Note:
The Graphics_OnScreenResize() sub-routine is intended for projects running in CEView on Windows Embedded devices that can switch between Portrait and Landscape display modes. It is not supported for projects running on Windows PC or in the Thin Client. Page 644 InduSoft Web Studio