SilverScreen Solid Modeler

scriptwin_open

scriptwin_open

Previous topic Next topic  

scriptwin_open

Previous topic Next topic JavaScript is required for the print function  

 

SilverPlusRect

SilverEngineRect

 

int scriptwin_open( SWInitStruct *swi );

 

SWInitStruct *swi;   // A pointer to an SWInitStruct data type

 

 

 




Synopsis

#include "silver.h"

 

The scriptwin_open function opens a script window, which is an alternative SilverScreen command target.

 

 

Parameters

swi is a pointer to a script window initialization data structure that has been filled in.

 

 

Return Value

scriptwin_open returns a script window handle if successful, or 0 otherwise. The script window handle is used to close, resize, or process commands.

 

 

Remarks

Script windows are exclusive to the SilverPlus and SilverEngine platforms.

 

A script window is typically used to display a SilverScreen drawing in a secondary window, such as a Dialog. A script window is opened, commands are executed, and when the dialog closes the script window is closed.

 

 

See Also

scriptwin_close, scriptwin_execute, scriptwin_resize

 

 

Example

See the ScriptWin SilverPlus sample application for an example.