gui.getTabContainerItemCount

Counts the items in a tab container.

Prototype

  1. nCount = gui.getTabContainerItemCount ( hComponent )

Parameters

hComponent - valid GUI component handle


Return values

nCount - number 0..n


Sample

  1. function onLogUpdateTabs ( )
  2.  
  3. local hTabCategory = gui.getComponent ( "CategoryTab" )
  4. if ( hTabCategory ) then
  5. gui.setTabContainerTabsVisible ( hTabCategory, gui.getTabContainerItemCount ( hTabCategory ) > 1 )
  6. end
  7. end

Available since ShiVa 2.0