get-selection in tab-panel%

Returns the index (counting from 0) of the currently selected tab. If the panel has no tabs, the result is #f.