gui.setCurrentDesktop

Switches to a specified ShiVa desktop.

Prototype

  1. bOk = gui.setCurrentDesktop ( nDesktop )

Parameters

nDesktop - desktop index number 1..n


Return values

bOk - true on success


Sample

  1. function onDesktop1 ( ) if ( gui.getDesktopCount ( ) > 0 ) then gui.setCurrentDesktop ( 1 ) end end

Available since ShiVa 2.0