The latest version of the Sidewinder Viewer provides more options for docking renderer windows from the JavaScript API. Notably, it is now possible to create Renderer objects as docked children of a larger Application object. This allows a user to close your entire application from a single top-level window and can also provide a more convenient grouping of related windows.
The script required for such an approach is straightforward. Once a new Application object has been instantiated, calls to its CreateRenderer() method work in much the same way as calls to Renderer.Create(). A new Dock parameter allows a script to control how the child window should be positioned within its parent.
To demonstrate this technique, we have produced a new sample that docks a number of NASA feeds to a single parent window. Note that it requires the latest versions of the Sidewinder Viewer and formsPlayer in order to work. To run the sample, you must then invoke the viewer with the appropriate path as the first argument. This can be achieved by saving the script locally and using 'Open With...' from the Windows Explorer context menu if you wish.


