gui.getDesktopMaximizedPane

Returns the index number of the currently maximized pane on a ShiVa desktop.

Prototype

  1. hPane = gui.getDesktopMaximizedPane ( nDesktop )

Description

Multiple panes can live on the same ShiVa desktop. Panes can be maximized through the 2-arrow-symbol in the pane corner.


Parameters

nDesktop - index number of the desktop


Return values

hPane - pane handle that is maximized, or nil


Sample

  1. function onMaximize ( )
  2.  
  3. local nDesktop = gui.getCurrentDesktop ( )
  4. local nPane = gui.getDesktopPaneIndexAtPoint ( nDesktop )
  5. if ( nPane ) then
  6. if ( gui.getDesktopMaximizedPane ( nDesktop ) == nPane ) then
  7. gui.maximizedDesktopPane ( nDesktop, nil )
  8. else
  9. gui.maximizedDesktopPane ( nDesktop, nPane )
  10. end
  11. end
  12. end

Available since ShiVa 2.0