gui.createDesktopPane

Creates a new editor window and optionally fill it with a module.

Prototype

  1. gui.createDesktopPane ( [sModuleIdentifier] )

Description

Useful to show more complex popup-style information, like a log window when there is no log module on the current ShiVa desktop.


Sample

  1. -- new empty editor window
  2. function onCreateEmptyPanel ( )
  3. gui.createDesktopPane ( )
  4. end
  5.  
  6. ------------------------------------
  7.  
  8. -- somewhere in another function, create a log window
  9. if ( gui.getMainModuleViewDesktopPane ( "com.shiva.editor.log" ) == nil ) then
  10. gui.createDesktopPane ( "com.shiva.editor.log" )
  11. end

Available since ShiVa 2.0