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 ToggleItemPageAndSetOthers(Avolites.Menus.IMenu, Avolites.Menus.MenuItem, System.String, System.String)

HTTP

http://[ip]:4430/titan/script/Menu/ToggleItemPageAndSetOthers

Parameters

menu: Menu to process

selectedItem: Selected Item

itemPage: Page to set the selected item to

othersPage: Page to set the other items to