SetTopMenuTitleCaching Function

Change the menu title caching behavior of the TopMenu. By default the titles are cached to reduce overhead. If you need dynamic menu titles, which can change everytime the menu is displayed to a user, set this to false.

void SetTopMenuTitleCaching(Handle topmenu, bool cache_titles)

Parameters

Handle topmenu

TopMenu Handle.

bool cache_titles

Cache the menu titles and don't call the handler with TopMenuAction_DisplayTitle everytime the menu is drawn?

Errors

Invalid TopMenu Handle