gui.sendEvent

Sends an event to an editor GUI component.

Prototype

  1. bOk = gui.sendEvent ( hComponent, sEvent, ... )

Parameters

hComponent - valid GUI component handle
sEvent - event name string
... - optional additional arguments


Return values

bOk - true on success


Sample

  1. -- wrapper
  2. function emitScriptEditorSignal ( hInstance, sSignal )
  3. gui.sendEvent ( hInstance, sSignal )
  4. end
  5.  
  6. -- somewhere in another function
  7. emitScriptEditorSignal ( gui.getParentComponent ( hTextEditor ), "onScriptEditorCanceled ( hView, hComponent )" )

Available since ShiVa 2.0