gui.getCurrentDesktop

Returns the current ShiVa desktop index number.

Prototype

  1. 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

  1. hViewController = gui.findBestViewController ( project.getFileType ( hFirstSelectedFile ), gui.kViewControllerViewTypeAny, gui.getCurrentDesktopIndex ( ) )

Available since ShiVa 2.0