FindTopMenuCategory Function

Finds a category's topobj ID in a TopMenu.

TopMenuObject FindTopMenuCategory(Handle topmenu, const char[] name)

Parameters

Handle topmenu

TopMenu Handle.

const char[] name

Object's unique name.

Return Value

TopMenuObject ID on success, or INVALID_TOPMENUOBJECT on failure.

Errors

Invalid TopMenu Handle.