gui.getParentComponent
Returns a handle to the component one level up.
Prototype
hParent = gui.getParentComponent ( hComponent )
Parameters
hComponent - valid GUI component handle
Return values
hParent - parent component handle on success, otherwise nil
Sample
function onPropertyViewControlLabelButtonButtonClicked ( hView, hComponent ) local hInstance = gui.getParentComponent ( hComponent ) if ( hInstance ) then emitPropertyViewControlLabelButtonSignal ( hInstance, "onPropertyViewControlLabelButtonClicked ( hView, hComponent )" ) end end -------------------------------------------------------------------------------- function emitPropertyViewControlLabelButtonSignal ( hInstance, sSignal ) gui.sendEvent ( hInstance, sSignal ) end
Available since ShiVa 2.0