This property sets and gets if the current control is selected. This only applies
to controls that are within select box type.
function onTest()
{
var tab = scene.getBoxById("myTab");
if (tab)
{
if (tab.selected)
shell.print("My tab is SELECTED");
else
shell.print("My tab NOT SELECTED");
}
}