gui.getComponent

Returns a handle to an editor GUI component.

Prototype

  1. hComponent = gui.getComponent ( sComponentIdentifier )

Parameters

sComponentIdentifier - identifier string, possibly from the ModuleXML


Return values

hComponent - component handle if successful, otherwise nil


Sample

  1. function onScriptEditorUndo ( hView, hComponent ) commonAPI.undoScriptEditorModification ( gui.getParentComponent ( gui.getComponent ( "editor" ) ) ) end

Available since ShiVa 2.0