AVOLITES TITAN API

ToggleItemPageAndSetOthers

Slightly convoluted but quite useful function. Sets all menu items to a specified page except the one selected which is set to itemPage unless it's already on that page in which case it's set to the same as the others

Namespace: Menu

Syntax

MACRO

Void Menu.ToggleItemPageAndSetOthers(IMenu menu, MenuItem selectedItem, String itemPage, String othersPage)

HTTP

http://[ip]:4430/titan/script/2/Menu/ToggleItemPageAndSetOthers?menu={}&selectedItem={}&itemPage={string}&othersPage={string}

Parameters

menu ( IMenu ) : Menu to process

selectedItem ( MenuItem ) : Selected Item

itemPage ( String ) : Page to set the selected item to

othersPage ( String ) : Page to set the other items to