gui.addCurrentModuleTrayComponent
Adds a component to the ShiVa tray.
Prototype
bOk = gui.addCurrentModuleTrayComponent ( hTrayComponent, hTooltipComponent, hClickedComponent )
Description
The tray is the small info bar the very bottom of the editor window.
Parameters
hTrayComponent - handle to component you want to set into the tray
hTooltipComponent - handle to tooltip component you want to set into the tray
hClickedComponent - handle to component you want to set into the tray that handles your clicked events
Return values
bOk - true on success
Sample
--create Tray Icons local hTrayButton = gui.instantiate ( "com.shiva.editor.log.lib", "TrayButton", "TrayButtonMessage" ) local hItem = gui.instantiate ( "com.shiva.editor.log.lib", "CategoryTemplate", "TrayMessage" ) gui.setPushButtonIcon ( hTrayButton, hLogMessageIcon ) gui.setPushButtonText ( hTrayButton, "0" ) gui.addCurrentModuleTrayComponent ( hTrayButton, hItem, hItem ) gui.setComponentVisible ( hTrayButton, true )
Available since ShiVa 2.0