gui.getCurrentDesktop
Returns the current ShiVa desktop index number.
Prototype
nDesktop = gui.getCurrentDesktop ( )
Description
ShiVa Desktops can be selected through the desktop bar in the top right corner. This function has nothing to do with OS-specific virtual desktops.
Parameters
Return values
nDesktop - index number 1..n
Sample
hViewController = gui.findBestViewController ( project.getFileType ( hFirstSelectedFile ), gui.kViewControllerViewTypeAny, gui.getCurrentDesktopIndex ( ) )
Available since ShiVa 2.0